Program to print 'Hello World' 10 times in SQL Server

Rajnilari2015
Posted by Rajnilari2015 under Sql Server category on | Points: 40 | Views : 2634
We can use the 'GO' statement as under

PRINT 'Hello World'
GO 10


/*
Result

Beginning execution loop
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Batch execution completed 10 times.

*/

Comments or Responses

Login to post response