sql server中得到剛插入記錄對應的自增列的值
如下:create table test (
id int identity(1,1),
name varchar(20)
)
insert into test values('test)
select @@identity
最後更新:2017-04-02 22:16:39
create table test (
id int identity(1,1),
name varchar(20)
)
insert into test values('test)
select @@identity
最後更新:2017-04-02 22:16:39