游客发表

MySQL explain实际操作流程说明

发帖时间:2025-11-04 01:14:28

MySQL explain实际操作流程说明
实际说明复制MySQL> explain SELECT * FROM `whisper` WHERE to_id = 6696 AND del = 0 AND whisper=0 ORDER BY `send_time` DESC LIMIT 4;   +----+-------------+---------+------+---------------+-------+---------+-------+------+-----------------------------+   | id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |   +----+-------------+---------+------+---------------+-------+---------+-------+------+-----------------------------+   | 1 | SIMPLE | whisper | ref | to_id | to_id | 4 | const | 1 | Using where; Using filesort |   +----+-------------+---------+------+---------------+-------+---------+-------+------+-----------------------------+   1 row in set (0.00 sec)  1.2.3.4.5.6.7.

    热门排行

    友情链接