Looping through GO statement – TIP # 19

Although, I did not get chance to use this facility in my projects but it is good to know feature.

Suppose you want looping and want to insert data in table then in such situation you can use this GO lopping feature.

In below example We are inserting data into debug table with GO statement

Now  when you see the debug table you will find 1000 records are there.

 

 Enjoy !!!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

code