创建、删除唯一约束:
db2 "alter table tabname add unique(colname)"
db2 "alter table tabname drop unique CONSTNAME "
创建主键约束:
db2 "alter table staff add primary key (id)"
db2 "alter table t_da_jkda_rkxzl drop primary key"
时间: 2024-10-18 01:48:06
创建、删除唯一约束:
db2 "alter table tabname add unique(colname)"
db2 "alter table tabname drop unique CONSTNAME "
创建主键约束:
db2 "alter table staff add primary key (id)"
db2 "alter table t_da_jkda_rkxzl drop primary key"