Invalid default value for 'create_date' timestamp field

后端 未结 16 1590
我寻月下人不归
我寻月下人不归 2020-11-30 16:49

I have the following sql create statement

mysql> CREATE  TABLE IF NOT EXISTS `erp`.`je_menus` (
    ->   `id` INT(11) NOT NULL AUTO_INCREMENT ,
    -&g         


        
16条回答
  •  鱼传尺愫
    2020-11-30 16:54

    Just Define following lines at top of your Database SQL file.

    SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
    SET time_zone = "+00:00";
    

    It is working for me.

提交回复
热议问题