sql server create table时需要加上 go

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

posted @ 2020-09-26 12:27  温故纳新  阅读(291)  评论(0编辑  收藏  举报