题解 122 | #删除索引#

【场景】:删除索引
【分类】:drop indexalter table

分析思路

方法一、使用drop index

  • [使用]:drop index 索引名 on 表名;

方法二、使用alter table

  • [使用]:alter table 表名 drop index 索引名;

扩展

前往查看:MySQL 索引的创建、删除

求解代码

方法一: 直接删除索引

drop index uniq_idx_exam_id on examination_info;
drop index full_idx_tag on examination_info;

方法二: 在修改表中删除索引

alter table examination_info drop index uniq_idx_exam_id;
alter table examination_info drop index full_idx_tag;
全部评论

相关推荐

06-26 17:24
已编辑
宁波大学 golang
迷失西雅图:别给,纯kpi,别问我为什么知道
点赞 评论 收藏
分享
门口唉提是地铁杀:之前b站被一个游戏demo深深的吸引了。看up主页发现是个初创公司,而且还在招人,也是一天60。二面的时候要我做一个登录验证和传输文件两个微服务,做完要我推到github仓库,还要我加上jaeger和一堆运维工具做性能测试并且面试的时候投屏演示。我傻乎乎的做完以后人家跟我说一句现在暂时不招人,1分钱没拿到全是白干
你的秋招第一场笔试是哪家
点赞 评论 收藏
分享
评论
2
5
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务