explain的使用及详解

explain显示mysql如何使用索引来处理查询语句和连接表信息。用来帮助优化索引和查询语句。 直接在查询语句前面加explain就能够: EXPLAIN SELECT dept.dname,emp.job from dept,emp where dept.deptno=emp.empno;html explain列的解释:mysql 列名 意义 id 执行编号,标识select所属的行。若是在
相关文章
相关标签/搜索