SQL 通过月份查询数据
作者:互联网
SQL 通过月份查询数据
表
SQL:根据创建月份查询消息
SELECT * from his_message_publish where MONTH(create_time) = MONTH('2021-07-27 17:13:31') and year(create_time) = year('2021-07-27 17:13:31')
参考地址
https://my.oschina.net/kuchawyz/blog/2252228
标签:27,07,月份,create,SQL,查询,year 来源: https://blog.csdn.net/weixin_46724562/article/details/119351888