LoginSignup
0
0

More than 3 years have passed since last update.

【MySQL】特定のテーブルでERROR 1064 (42000)

Posted at

概要

正しくSELECT文を打ったのに、特定のテーブルでERROR 1064 (42000)エラーがでてしまう現象を解決。

ふと、あれ?と思ってしまったので備忘録

テーブル名が予約語の場合は要注意

今回groupsテーブルをSELECTしようとしたらエラーになってしまった。

mysql> SELECT * FROM groups;

対処法

テーブル名に「`」で囲む

mysql> SELECT * FROM `groups`;

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0