SELECT @@IDENTITY
来源:互联网 发布:网络舆情的预警措施有 编辑:程序博客网 时间:2024/05/03 01:22
@@identity是表示的是最近一次向具有identity属性(即自增列)的表插入数据时对应的自增列的值,
是系统定义的全局变量。一般系统定义的全局变量都是以@@开头,用户自定义变量以@开头。比如有个表A,
它的自增列是id,当向A表插入一行数据后,如果插入数据后自增列的值自动增加至101,
则通过select @@identity得到的值就是101。使用@@identity的前提是在进行insert操作后,
执行select @@identity的时候连接没有关闭,否则得到的将是NULL值。
- SELECT @@IDENTITY
- SELECT @@IDENTITY
- select @@Identity
- select @@identity
- select @@identity
- Access中的SELECT @@IDENTITY
- select @@identity as value
- select @@identity的用法
- select @@identity的用法
- select @@identity的用法
- 关于 SELECT @@IDENTITY
- select @@identity的用法
- select @@identity的用法
- 数据库 select @@identity说明
- select @@identity的用法
- select @@identity的用法
- select @@identity的用法
- select @@identity的用法
- CT8600L/CT8650E/CT8681/CT8685排线综合测试仪
- 关于Google你可能不知道的10件事
- 如何给图片打水印
- web 配置 Spring tomcat(jndi)
- CEGUI小结
- SELECT @@IDENTITY
- INNER JOIN 语法
- 滚动条设置
- 在SQL语句中查询多条记录并把多条记录同一字段的值连接成一个字符并返回的写法
- C++从零开始(一)——何谓编程
- 路由器 DMZ主机几FTP 设置简单图解
- php解析XML例子
- 渗透测试流程和内容
- 博客搬家,开始在这里写东西了