• 过去30天
        subdate(日期,interval 30 day)
  • 未来30天
        adddate(日期,interval 30 day)
  • 日期只差30天
        datediff(日期1,日期2)=30