Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the use of GO in SQL Server Management Studio & Transact SQL?

SQL Server Management Studio always inserts a GO command when I create a query using the right click "Script As" menu. Why? What does GO actually do?

like image 511
tvanfosson Avatar asked Feb 19 '10 20:02

tvanfosson


People also ask

Do I need to use go in SQL?

They're not strictly required - they're just instructions for the SQL Server Management Studio to execute the statements up to this point now and then keep on going. GO is not a T-SQL keyword or anything - it's just an instruction that works in SSMS.

What is go statement?

The goto statement is a jump statement which is sometimes also referred to as unconditional jump statement. The goto statement can be used to jump from anywhere to anywhere within a function.

What is go in database?

The idiomatic way to use a SQL, or SQL-like, database in Go is through the database/sql package. It provides a lightweight interface to a row-oriented database. This website is a reference for the most common aspects of how to use it. Why is this needed?


1 Answers

It is a batch terminator, you can however change it to whatever you want alt text

like image 195
SQLMenace Avatar answered Oct 11 '22 14:10

SQLMenace