首页 > 技术文章 > 添加 查看 和删除 索引

jinshuo 2018-03-20 17:43 原文

show keys from tablename; //查看索引
alter table test add unique index (`key`); //创建unique索引 alter table test drop index `key`; //删除key键 unique索引

推荐阅读