MySQL中explain的用法及查看使用了哪些索引!

1.EXPLAIN的使用方法: 在select语句前加上explain就能够了。mysql 如:explain select surname,first_name form a,b where a.id=b.idgit 2.EXPLAIN列的解释:算法 table:显示这一行的数据是关于哪张表的sql type:这是重要的列,显示链接使用了何种类型。从最好到最差的链接类型为const、eq_reg
相关文章
相关标签/搜索