MySQL:给表的某个字段添加唯一性约束

版权声明:本博客为记录本人学习过程而开,内容大多从网上学习与整理所得,若侵权请告知! https://blog.csdn.net/Fly_as_tadpole/article/details/84502430


alter table product_category add unique key unique_category_type (category_type);

猜你喜欢

转载自blog.csdn.net/Fly_as_tadpole/article/details/84502430