您的位置:首页 > 数据库

sql server中得到刚插入记录对应的自增列的值

2012-03-20 20:43 302 查看
如下:
create table test (

id int identity(1,1),

name varchar(20)

)

insert into test values('test)

select @@identity
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: