SQL SERVER 2008 创建,删除,添加表的主键
创建有主键的表create table 教师 (编号 char(10),姓名 char(10) not null,性别 char(2),年龄 int,职称 char(10),constraint a primary key (编号));
删除表的主键
Alter table 教师 drop constraint a;
添加表的主键
Alter table 教师 add constraint a primary key (编号);
页:
[1]