阅读399 返回首页    go 阿里云 go 技术社区[云栖]


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

  上一篇:go jquery的ajax方式调用json简单例子
  下一篇:go C# xml格式化输出函数