sql设置主键代码 怎样用SQL语句为表创建主键并自动创建索引?
怎样用SQL语句为表创建主键并自动创建索引?create table(id int identity(1,1)not null primary key,other Column varchar(50)
怎样用SQL语句为表创建主键并自动创建索引?
create table(id int identity(1,1)not null primary key,other Column varchar(50))--将主键设置为表时,数据库将自动创建一个以主键为名称的唯一索引。