DATE_FORMAT(date,format)
Formats the date value according to the format string.
The following specifiers may be used in the format string. The % character is required before format specifier characters.
1 | #查询事务隔离级别 |
问题:数据量达百万级别根据日期查询效率特别慢。create_time是datetime类型,转换为日期再匹配,需要查询出所有行进行过滤。