检测mysql中建立的索引是否生效

使用方法,在select语句前加上explain就可以了:

EXPLAIN SELECT surname,first_name form a,b WHERE a.id=b.id

原文地址:https://www.cnblogs.com/pengyunjing/p/9197430.html