Sql 临时表

来源:互联网 发布:下载一个软件 编辑:程序博客网 时间:2024/05/22 06:30
declare @i int
SELECT ItemCode,Sum(Quantity*Price) jg
Into #Temp_1
From Rdr1
Group By ItemCode
select @i=1
while @i<=3
begin
Insert Into #Temp_1 Values('aaa',1)
select @i=@i+1
end

 

Select * From #Temp_1
原创粉丝点击