开发者

current_date()+1 is returning invalid date

开发者 https://www.devze.com 2023-01-22 15:50 出处:网络
select CURRENT_DATE()+1 is returning 20101032 on Oct 31 in MySQL. How can I开发者_开发百科 fix this? The expected date is 20101101. Thank you.use DATE_ADD(CURDATE(), INTERVAL 1 DAY) insteadThis also w

select CURRENT_DATE()+1 is returning 20101032 on Oct 31 in MySQL. How can I开发者_开发百科 fix this? The expected date is 20101101. Thank you.


use DATE_ADD(CURDATE(), INTERVAL 1 DAY) instead


This also works. date(CURRENT_DATE+1)

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号