declare @count intset @count = 0while (@count < 10000)beginprint RIGHT('0000' + CAST(@count AS VARCHAR), 4)set @count = @count +1end 相关文章: