mysql删除索引 增加索引
生活随笔
收集整理的這篇文章主要介紹了
mysql删除索引 增加索引
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
使用ALTER TABLE語句創(chuàng)建索引alter table table_name add index index_name (column_list) ;
alter table table_name add unique (column_list) ;
alter table table_name add primary key (column_list) ;刪除索引drop index index_name on table_name ;
alter table table_name drop index index_name ;
alter table table_name drop primary key ;
?
alter table ugc_sys_wocomment drop index user_id_index ;
?alter table ugc_sys_wocomment add index user_id_index (user_id) ?USING BTREE;? 這個(gè)對(duì)
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
?
總結(jié)
以上是生活随笔為你收集整理的mysql删除索引 增加索引的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: iPhone 15发热严重 有人称被烫伤
- 下一篇: 夏普 AQUOS Sense8 手机发布