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


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


Sorry, only registered users may post in this forum.

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.