评论里一个小伙伴写的,我遇到这个问题了: 注意date_format(date,"%Y-%m")无法在被year()、month()提取了。因为year()、month()只能提取完整的日期格式或时间戳。
点赞

相关推荐

牛客网
牛客企业服务