WHILE
WHILE expression BEGIN ... END
Examples
declare @variable int; set @variable = 0; while @variable < 10 BEGIN PRINT @variable; set @variable = @variable + 1 ; END
WHILE expression BEGIN ... END
declare @variable int; set @variable = 0; while @variable < 10 BEGIN PRINT @variable; set @variable = @variable + 1 ; END