DavidYun

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年7月24日

摘要: 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() 阅读全文
posted @ 2013-07-24 16:44 David.Yun 阅读(401) 评论(1) 推荐(0) 编辑