Mysql datetime DEFAULT CURRENT_TIMESTAMP error

前端 未结 3 1323
闹比i
闹比i 2020-12-15 08:16

1. When I ran this MYSQL syntax on windows it ran properly:

CREATE TABLE New
(
  id bigint NOT NULL AUTO_INCREMENT,
  timeUp datetime DEFAUL         


        
3条回答
  •  粉色の甜心
    2020-12-15 08:43

    if you wants to default time to must change to timestamp in your datatype,

    the datetime is going to display the user input of table...

    http://dev.mysql.com/doc/refman/5.0/en/timestamp-initialization.html

    http://dev.mysql.com/doc/refman/5.6/en/timestamp-initialization.html

提交回复
热议问题