SQL关键字@@identity

@@identity

最近一次向具有identity(自增列)的表中插值的id值

@@一般表示系统定义的全局变量

@表示用户自定义变量

使用前提:在insert into后数据库连接没有关闭,否则返回null

 

posted @ 2016-11-09 10:07  漫步游走  阅读(285)  评论(0编辑  收藏  举报