What is the difference between “;” and “GO” in T-SQL?

后端 未结 7 908
抹茶落季
抹茶落季 2020-12-28 12:40

I use ADO.NET as well as the sqlcmd utility to send SQL scripts to SQL Server 2008. What is the difference between using ; and GO to separate chunk

7条回答
  •  猫巷女王i
    2020-12-28 13:26

    I thought the ; character separates a list of SQL commands, GO just instructs SQL Server to commit all the previous commands.

提交回复
热议问题