怎样用sql语句为主键设置自动标识列

如题所述

第1个回答  推荐于2018-03-30
在创建表时指定identity 就行了。
例如:
create table tempA(id int identity(1,1) not null primary key, descr varchar(10))本回答被提问者和网友采纳
相似回答