If you enter a number after the GO command, then the statement or batch preceding is executed that many times. This can be useful for creating test data, among other things.

If you enter a number after the GO command, then the statement or batch preceding is executed that many times. This can be useful for creating test data, among other things.

Use SqlSmash to write maintainable SQL scripts, understand code faster and navigate around easily in SSMS.