--查询分析其中执行
create table t(id int identity(1,1),name char)
insert into t select 'a'
insert into t select 'b'
select @@identity
drop table t
--测试--
2
create table t(id int identity(1,1),name char)
insert into t select 'a'
insert into t select 'b'
select @@identity
drop table t
--测试--
2
select @@identity