创建表 mysql 错误

Creating tables on mysql error

我似乎找不到 Mysql 一直无法创建以下 table 的原因。显示错误 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 'order ( orderId int not null auto_increment primary key,
clientId int not nu' at line 1"

CREATE TABLE order (
  orderId int not null auto_increment primary key,
  clientId int not null,
  delivery boolean not null default 0,
  isOpen boolean not null default 1,
  foreign key (clientId) references user (uid),
  createdAt timestamp not null default current_timestamp,
  updatedAt timestamp not null default current_timestamp on update current_timestamp);

我尝试删除外键以查看是否是问题所在,但没有成功。在网上找不到任何问题。

ORDER 是保留字

尝试使用反引号 ("`")

CREATE TABLE `order` (