數據庫創建表問題
創建數據庫表報以下錯誤
Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
創建數據庫表報以下錯誤
Incorrect table definition; there can be only one TIMESTAMP column with CURRENT_TIMESTAMP in DEFAULT or ON UPDATE clause
2019-06-24
舉報
2019-09-11
將數據庫的start_time和end_time那兩行改為:
start_time timestamp not null default '0000-00-00 00:00:00' comment '開始時間',
end_time timestamp not null default '0000-00-00 00:00:00' comment '結束時間',
create_time timestamp not null default current_timestamp comment '創建時間',
2019-08-08
我也遇到了 ,我的版本是5.5,怎么解決?? ?
2019-06-25
注意數據庫的版本問題,如果你使用5.6 以前的版本,肯定有這個問題