可以使用explain語句查看索引,explain是用來判斷mysql語句執行的時間效率的。 所以可以使用explain select語句 where 加上索引的字段作為條件; 結果中的possible_key是可能使用到的索引,key實際使用到的索引。 比如: explain select * from user_info where username="lilei";
如何使用mysql索引 刪除索引: drop index 索引名 on 表名; 比如: drop index myindex on user_info; 以上就是關于如何使用mysql索引的內容,如果你們有學習到知識或者技能,可以把它分享出去讓更多的人看到。