What is the difference between ; and GO in stored procedure in SQL Server?

后端 未结 5 2439
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-18 18:16

What is the difference between ; and GO in stored procedure in SQL Server ?

Actually, if I have a stored procedure in SQL server and wanna to p

5条回答
  •  一个人的身影
    2021-02-18 18:49

    It marks the end of a batch in Query Analyzer and therefore signals the end of a stored procedure definition in that batch. As much as i know its not a part of sp. GO isn't a TSQL command.

    And ; just ends the statement.

提交回复
热议问题