SELECT * FROM 表名 WHERE DATE_FORMAT( create_time, ‘%Y%m’ ) = DATE_FORMAT( CURDATE( ) , ‘%Y%m’ )
SELECT * FROM 表名 WHERE to_days(日期字段) = to_days(now());
SELECT * FROM 表名 WHERE DATE_FORMAT( create_time, ‘%Y%m’ ) = DATE_FORMAT( CURDATE( ) , ‘%Y%m’ )
SELECT * FROM 表名 WHERE to_days(日期字段) = to_days(now());