I have tried to add a date filed in phpMyAdmin
1067 - Invalid default value for 'AddDate'
It wants Length/Values, Collation, Attributes.
Are these necessary? Does the database not know the length of a DATE field?
HELP PLEASE.
I have tried to add a date filed in phpMyAdmin
It wants Length/Values, Collation, Attributes.
Are these necessary? Does the database not know the length of a DATE field?
HELP PLEASE.
Ideally in Mysql "Date" datatype cannot set default date, you may need to change your datatype to DateTime or Timestamp using which we can store the default date.
Please refer the Question asked and its accpeted answer
Visit: How to set default value of DATE (not DATETIME/TIMESTAMP) column to current date?