Invalid default value for 'Date'
问题 I want to set date as default value for date in mysql (not timestamp), but the following error appear ALTER TABLE `RMS`.`transactionentry` CHANGE `Date` `Date` DATE DEFAULT NOW() NOT NULL Error Invalid default value for 'Date' Same Case alter table `RMS`.`transactionentry` change `Date` `Date` date default 'CURRENT_DATE' NOT NULL 回答1: alter table `RMS`.`transactionentry` change `Date` `Date` date default current_timestamp NOT NULL Updated: I don't think you can achieve that with mysql date .