具体用法看上面的例子,更多关于IDENTITY的用法可以参看MSDN:
http://technet.microsoft.com/zh-cn/exchange/ms186775(sql.100).aspx
是这样么 update from 表名 where 列名 int not null identity(0,1)
追答不是,where 后面加的条件表达式,identity(a,b)一般是在创建表的时候使用
create table a
(序号 int not null identity(0,1)--序号后面分别代表整型、非空和自增)
update 一般用在对列值的修改和更新,如果你想添加列的话,用
alter table 表名
add 序号 int not null identity(0,1)