Alter table 表名 Add Constraint PrimaryKey Primary Key (主键字段名)
alter table 表名 add constraint 关联表名 primary key(列名);