The following code works properly without using go keyword in sql-server2008.
DECLARE @intFlag INT
SET @intFlag = 1
WHILE (@intFlag <=5)
BEGIN
PRINT @intFlag
SET @intFlag = @intFlag + 1
END
GO
I could not understand the use of go
here. If we have more than one while loop in that case how many go keyword we use. Please help me, I'm a little bit confused.