MySQL explain

来自WHY42
Riguz留言 | 贡献2018年9月18日 (二) 09:09的版本 (已建立頁面,內容為 "<pre> mysql> explain SELECT COUNT(*) FROM vehicle_prod WHERE fin LIKE '%00000'; +----+-------------+--------------+------------+-------+---------------+-------------…")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
mysql> explain SELECT COUNT(*) FROM vehicle_prod WHERE fin LIKE '%00000';
+----+-------------+--------------+------------+-------+---------------+----------------------+---------+------+---------+----------+--------------------------+
| id | select_type | table        | partitions | type  | possible_keys | key                  | key_len | ref  | rows    | filtered | Extra                    |
+----+-------------+--------------+------------+-------+---------------+----------------------+---------+------+---------+----------+--------------------------+
|  1 | SIMPLE      | vehicle_prod | NULL       | index | NULL          | idx_vehicle_prod_fin | 203     | NULL | 3182812 |    11.11 | Using where; Using index |
+----+-------------+--------------+------------+-------+---------------+----------------------+---------+------+---------+----------+--------------------------+
1 row in set, 1 warning (0.00 sec)