2010年12月23日 星期四

SQL Server: Simple loading query

set nocount on;

Declare @ROWS INT
Declare @ROW INT
Declare @Count INT

Select @ROWS = 50000000
Select @ROW = 0
Select @Count = 0
While @ROW < @ROWS
Begin
Select @ROW = @ROW + 1
Print @Row
End

沒有留言: