如何向MySQL表中添加索引?
SELECT * FROM table WHERE id = '1';
SELECT * FROM table WHERE product_id = '1';
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
+----+-------------+-------+------+----------------------+------+---------+------+------+------------------+
| 1 | SIMPLE | table | ALL | NULL | NULL | NULL | NULL | 157211 | Using where |
+----+-------------+-------+------+----------------------+------+---------+------+------+------------------+
开满天机
跃然一笑
蝴蝶不菲
相关分类