MySQL Forums
Forum List  »  Newbie

default value in 5.7
Posted by: Julie N
Date: July 06, 2022 01:01AM

Hello there,
what is equivalent to mysql 8.0 syntax "create table test(c1 date default (curdate()));" in mysql 5.7? It does not work in 5.7. I need default date shows as "2022-07-06". Thanks

Julie N

Options: ReplyQuote

Written By
default value in 5.7
July 06, 2022 01:01AM
July 06, 2022 12:50PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.