mysql中日期参数到年月

 select * from user_customer_month
            where create_time=DATE_FORMAT(#{date}, '%Y-%m')

  

posted @ 2021-06-11 15:40  红尘沙漏  阅读(400)  评论(0编辑  收藏  举报