2013年4月6日

SQL Server IDENTITY用法 .

摘要: create table test(id int identity(1,1),mc varchar(20))insert into test(mc) values('aaaaa')select @@identity,ident_current('TEST')SQL Server 2000中,有三个比较类似的功能:他们分别是:SCOPE_IDENTITY、IDENT_CURRENT 和 @@IDENTITY,它们都返回插入到 IDENTITY 列中的值。 IDENT_CURRENT 返回为任何会话和任何作用域中的特定表最后生成的标识值。IDENT_CURRENT 阅读全文

posted @ 2013-04-06 17:35 MyBeN 阅读(547) 评论(0) 推荐(0) 编辑

导航