mysql 5.6 datetime default now()

CREATE TABLE `test` (   id int,   `gmt_create` datetime  DEFAULT NOW() not NULL )ENGINE=InnoDB;
mysql5.5 不支持  datetime   DEFAULT NOW()  的写法,mysql5.6可以!

posted on 2015-09-07 10:22  kenwong  阅读(1809)  评论(0)    收藏  举报

导航