phpMyAdminで#1064エラーになる場合の対処

【環境】

Windows XP Pro SP2
XAMPP 1.7.3(MySQL 5.1.41、phpMyAdmin 3.2.4)

【現象】

上記環境にて、phpMyAdmin上からクエリを実行すると下記の1064エラーが出る。


#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 '(実行したクエリ)' at line 1

【発生する条件】

クエリにシングルコーテーション「'」が含まれている場合。
シングルコーテーションを削除するか、「`」に置換する必要がある。

【具体例】

エラーになる

CREATE TABLE 'hoge'.'customers' (
'id' BIGINT(20) NOT NULL);

正常に実行される

CREATE TABLE hoge.customers (
id BIGINT(20) NOT NULL);

正常に実行される

CREATE TABLE `hoge`.`customers` (
`id` BIGINT(20) NOT NULL);