MySQL:给表的某个字段添加唯一性约束
alter table product_category add unique key unique_category_type (category_type);删除唯一约束ALTER TABLE tb_name DROP {INDEX | KEY} index_name;
·
alter table product_category add unique key unique_category_type (category_type);
删除唯一约束
ALTER TABLE tb_name DROP {INDEX | KEY} index_name;
更多推荐
已为社区贡献22条内容
所有评论(0)