MySQL添加唯一索引

1 语法如下

           ALTER TABLE `t_user` ADD unique(`username`);
原文地址:https://www.cnblogs.com/QuestionsZhang/p/11175889.html