three examples like this: table had 300,000 data,all three are consumption 0.3s
cast function
SELECT CREATE_TIME from repay_plan
where CREATE_TIME>cast('2019-05-31 00:00:00' as datetime)
ORDER BY REPAY_ID desc limit 10000;
str_to_date function
SELECT CREATE_TIME from repay_plan
where CREATE_TIME>str_to_date('2019-05-31 00:00:00','%Y-%m-%d %H:%i:%S')
ORDER BY REPAY_ID desc limit 10000;
varchar
SELECT CAST(CREATE_TIME AS char) from repay_plan
where CREATE_TIME>'2019-05-31 00:00:00'
ORDER BY REPAY_ID desc limit 10000;