MySQL CURDATE() - yesteday is last day of the month

Posted by Andrew Spilak on Stack Overflow See other posts from Stack Overflow or by Andrew Spilak
Published on 2010-04-02T05:43:10Z Indexed on 2010/04/02 5:53 UTC
Read the original article Hit count: 168

Filed under:

I have some problem whith such mysql_query

INSERT INTO table VALUES ('', CURDATE()-1)

why if yesteday is last day of the month

the CURDATE()-1) result is like 2010-04-00

why not 2010-03-31

© Stack Overflow or respective owner

Related posts about mysql