閱讀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格式化輸出函數