定义变量和很基本的语句

2017-12-19  本文已影响0人  Dorrrris

declare @testtime nvarchar(50)
select @testtime = PTime from Product where pid in (select max(pid) from Product )
set @testtime='Image'+@testtime

select @testtime

筛选出某字段中不重复的内容:
select 字段 from 表名 group by 字段

上一篇 下一篇

猜你喜欢

热点阅读