课堂演示(批)

USE pubs

GO

CREATE TABLE Test1 (a INT PRIMARY KEY, b CHAR(3))

GO

INSERT INTO Test1 VALUES (1, 'aaa')

INSERT INTO Test1 VALUES (2, 'bbb')

INSERT INTO Test1 VALUES (3, 'ccc')

/ 语法错误 /

GO

/ 语法错误,整个批都不会被执行 /

SELECT * FROM Test1

/ 返回0行 /

GO