数据库表设计
邓老师(老邓教的)
insert into TestOne
values('','Test011')
select @@IDENTITY as '自动增长ID'
杨老师(老杨教的)
insert into TestOne
output inserted.ID as '自动增长ID'
values('','Test010')
最近偷的((*^__^*) 嘻嘻……)
insert into TestOne
values('','Test013')
select isnull(cast(scope_identity() as bigint), -99999999) as '自动增长ID'