Get the first and last date of next month in MySQL

后端 未结 11 1143
感情败类
感情败类 2020-12-01 03:43

How can I get the first and last day of next month to be used in the where clause?

11条回答
  •  一个人的身影
    2020-12-01 04:14

    In postgresql you have perfect date truncation functions.

    For MySQL, I found a discussion here which might give some ideas.

提交回复
热议问题