mysql-创建含有日期的表的时候报错,以至于无法创建成功
来源:懂视网
责编:小采
时间:2020-11-09 16:58:28
mysql-创建含有日期的表的时候报错,以至于无法创建成功
mysql-创建含有日期的表的时候报错,以至于无法创建成功:mysql 我创建表test,有两个字段id,ctime;CREATE TABLE test(id INT PRIMARY KEY,ctime DATETIME NOT NULL DEFAULT CURDATE());错误码: 1064You have an error in your SQL syntax; check the manu
导读mysql-创建含有日期的表的时候报错,以至于无法创建成功:mysql 我创建表test,有两个字段id,ctime;CREATE TABLE test(id INT PRIMARY KEY,ctime DATETIME NOT NULL DEFAULT CURDATE());错误码: 1064You have an error in your SQL syntax; check the manu

mysql
我创建表test,有两个字段id,ctime;
CREATE TABLE test(
id INT PRIMARY KEY,
ctime DATETIME NOT NULL DEFAULT CURDATE()
);
错误码: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'curdate()
)' at line 3
mysql-创建含有日期的表的时候报错,以至于无法创建成功
mysql-创建含有日期的表的时候报错,以至于无法创建成功:mysql 我创建表test,有两个字段id,ctime;CREATE TABLE test(id INT PRIMARY KEY,ctime DATETIME NOT NULL DEFAULT CURDATE());错误码: 1064You have an error in your SQL syntax; check the manu