|
There is such a table in the database: A (a total of 40 fields, all fields are varchar type, more than 9,000 data)
TheID Date Number Heavy TheGoods ...
HH00001 2016-01-01 10 1000 Wood ......
HH00002 2016-05-01 50 6000 Steel ...
...
HH01111 2017-01-01 30 800 cloth ...
...
I used Sql statements to query the data, and a strange situation occurred:
select * from A where Date between '2016-01-01' and '2016-11-01'
If the date in the above statement should be 2017, then the data query becomes very slow (the data is about one hundred). "Other cases" speed is normal!
What is the cause of this? Is there any way to fix it? Please give pointers ...
Learn, pay attention to ... |
|