摘要:
declare @itemnumber int --定义需要循环的次数 declare @tagint int --定义标志字段,用于结束循环 set @tagint=1 select @itemnumber = count(distinct Creater) from Demo_TestTable where isnull(Creater,'')'' And DATEDIFF(DAY,CreatDate,GETDATE())0) begin while @tagint'' And DATEDIFF(DAY,CreatDate,GETDATE() 阅读全文