关于mysql where 时间字段 大于 小于是否使用索引。 复合索引
摘要:对时间字段 trans_date 添加普通索引。 使用where trans_date = ‘’ 是肯定会使用索引的。 但是使用< , > 比较符时就不一定了。 select count(1) from A; // 40000 EXPLAIN select * from A where trans_
阅读全文
posted @ 2019-07-15 10:42
浙公网安备 33010602011771号