运行MySQL CREATE TABLE语句时出现语法错误

CREATE TABLE users (

user_id INT(8) NOT NULL AUTO_INCREMENT,

user_name VARCHAR(30) NOT NULL,

user_pass VARCHAR(255) NOT NULL,

user_email VARCHAR(255) NOT NULL,

user_date DATETIME NOT NULL,

user_level INT(8) NOT NULL,

UNIQUE INDEX user_name_unique (user_name),

PRIMARY KEY (user_id)

) TYPE=INNODB;

在SQL Server上运行此查询时,出现以下错误:

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 'TYPE=INNODB' at line 10

为什么会出现任何帮助?

回答:

代替

TYPE=INNODB

Engine=InnoDB

以上是 运行MySQL CREATE TABLE语句时出现语法错误 的全部内容, 来源链接: utcz.com/qa/401401.html

回到顶部