MySQL语法错误,can';我想不出是什么';这是不对的

MySQL语法错误,can';我想不出是什么';这是不对的,mysql,syntax,syntax-error,mysql-error-1064,Mysql,Syntax,Syntax Error,Mysql Error 1064,您好,谢谢您阅读我的问题!我收到这段代码的语法错误,但我无法找出错误所在。非常感谢您的任何见解 mysql> create table match ( -> event_id int not null, -> player1_id int, -> player2_id int, -> player1_score int, -> player2_score int, -> winner_id int, -> foreign key (event_id

您好,谢谢您阅读我的问题!我收到这段代码的语法错误,但我无法找出错误所在。非常感谢您的任何见解

mysql> create table match (
-> event_id int not null,
-> player1_id int,
-> player2_id int,
-> player1_score int,
-> player2_score int,
-> winner_id int,
-> foreign key (event_id) references event(id)
-> );
ERROR 1064 (42000): 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 'match (
event_id int not null,
player1_id int,
player2_id int,
player1_score int' at line 1
我找不到任何缺少的逗号,事件表肯定存在一个id列。你知道我错过了什么吗?谢谢大家!

匹配是一个简单的过程。用背勾将其括起来:

create table `match` ...

非常感谢。我在谷歌上搜索,因为我认为可能是这样,但找不到。你是救命恩人!时不时地查看关键字列表,了解哪些内容不能命名表和列,这是值得的。当它是您想要使用的术语时,它可能会很烦人,但它比每次引用它时都需要像这样转义的冲突要烦人得多。Match是一个保留字,对于表名来说是一个糟糕的选择