MYSQL中EXPLAIN的说明

1462阅读 0评论2008-06-22 枫影谁用了
分类:LINUX

mysql> explain select count(id) from t_prehandle_zhigao_05 as zhigao where start_time > '2008-05-30';
+----+-------------+--------+-------+---------------+------------+---------+------+---------+--------------------------+
| id | select_type | table  | type  | possible_keys | key        | key_len | ref  | rows    | Extra                    |
+----+-------------+--------+-------+---------------+------------+---------+------+---------+--------------------------+
|  1 | SIMPLE      | zhigao | range | start_time    | start_time | 8       | NULL | 1061762 | Using where; Using index |
+----+-------------+--------+-------+---------------+------------+---------+------+---------+--------------------------+
1 row in set (0.00 sec)

mysql>


EXPLAIN列的解释:

extra列返回的描述的意义

上一篇:grep or 条件
下一篇:删除MYSQl BIN-LOG 日志