There are two situations in which you must use the semicolon. The first situation is where you use a Common Table Expression (CTE), and the CTE is not the first statement in the batch. The second is where you issue a Service Broker statement and the Service Broker statement is not the first statement in the batch.
[@more@]来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/37724/viewspace-1018276/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/37724/viewspace-1018276/
本文介绍了在SQL批处理中使用分号的两种情况:一是使用公共表表达式(CTE)且CTE不是批处理中的第一条语句;二是使用服务代理(Service Broker)语句且该语句不是批处理中的第一条语句。
4244

被折叠的 条评论
为什么被折叠?



