时间:2021-07-01 10:21:17 帮助过:35人阅读
设置时区了么?
修改一下 INSERT 语句:
INSERT INTO `inputtest`(`id`, `uid`, `content`, `date`) VALUES ("","Leo","Hello",now());
NOW()是函数,不用加引号,加了变成插入字符串,日期类型字段就会显示0000-00-00 00:00:00
修改一下 INSERT 语句:
INSERT INTO `inputtest`(`id`, `uid`, `content`, `date`) VALUES ("","Leo","Hello",now());
NOW()是函数,不用加引号,加了变成插入字符串,日期类型字段就会显示0000-00-00 00:00:00