declare @count int
set @count = 0
while (@count < 10000)
begin
print RIGHT('0000' + CAST(@count AS VARCHAR), 4)
set @count = @count +1
end
posted on 2012-01-06 13:51  尚書  阅读(1093)  评论(0编辑  收藏  举报