SQL 获取插入后的最新一条记录ID号

select IDENT_CURRENT('表名'); insert into 表名(AA,BB) values('CC','DD') select @@Identity as 'newId';
相关文章
相关标签/搜索