创建、删除唯一约束:
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"
创建、删除唯一约束:
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"
转载于:https://www.cnblogs.com/wym789/p/7520854.html