こんにちは、私の質問を読んでくれてありがとう!私はこのコードで構文エラーを受け取りましたが、何が間違っているのか分かりません。どんな洞察力も大変ありがとうございます。MySQL構文エラー、何が間違っているのかわからない
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列で確実に存在します。私は何が欠けているすべてのアイデア?ありがとうございました!
マッチが予約語である - ありがとう – Strawberry