背景介绍: 表:push_log 索引A:task_batch varchar(60) USING BTREE 普通索引 索引B:push_task_id int(11) USING BTREE 普通索引 执行计划解读: 走全表扫描,未使用到索引 explain select * from ol_push_log where task_batch = 1; 索引生效 explain select * from ol_push_log where task_batch = "1"; 索引生效 ex…