小编典典

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

sql

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

为什么会出现任何帮助?


阅读 486

收藏
2021-03-17

共1个答案

小编典典

代替

TYPE=INNODB

Engine=InnoDB
2021-03-17