SELECT * FROM 表名 WHERE date_format(时间字段, ‘%Y-%m’) = DATE_FORMAT(now(), ‘%Y-%m’)

来源:https://blog.csdn.net/easternunbeaten/article/details/78915661

Logo

更多推荐