MySQL添加唯一索引

1 语法如下

           ALTER TABLE `t_user` ADD unique(`username`);

 

posted @ 2019-07-12 14:27  Questions张  阅读(22127)  评论(0编辑  收藏  举报