主题:如何把这个语句改成存储过程来执行呀?
Declare @tmp varchar(200) set @tmp=''
select top 10 @tmp=@tmp+','+ convert(varchar,feedbackid)
FROM data_table
where y=2011 and m=1 ORDER BY NEWID()
------------------
如何把这个语句改成存储过程来执行呀?谢谢
select top 10 @tmp=@tmp+','+ convert(varchar,feedbackid)
FROM data_table
where y=2011 and m=1 ORDER BY NEWID()
------------------
如何把这个语句改成存储过程来执行呀?谢谢