查询优化问题,日期条件速度很慢
mp866 2017-05-17 05:26:49 表里有两个同样的日期类型字段,开始日期,和结束日期
select * from A where A.开始日期 between ' 2017-01-01' and ' 2017-05-17'
查询速度5s
select * from A where A.结束日期 between ' 2017-01-01' and ' 2017-05-17'
查询速度20s
结束日期 字段里 空值会多一些
这是什么原因,怎么解决大神们帮忙分析一下