if object_id(N'dbo.t2') is not null drop table t2go -- 需要加上这个 go 否则无效,此外 go 需要独占一行,否则报错 '分析 go 时遇到错误语法。'create table t2(id2 int,age2 int)insert into t2(id2,age2)values(21,211),(22,222)