获取时间戳的sql语句

SELECT @cdate := DATE_ADD(@cdate, INTERVAL +1 DAY) dateString
  FROM( SELECT @cdate := DATE_ADD('2019-06-10', INTERVAL -1 DAY) FROM ap_sys_dictionary ) t0
  WHERE date(@cdate) <= DATE_ADD('2019-07-20', INTERVAL -1 DAY)

 

备忘

你可能感兴趣的:(获取时间戳的sql语句)