Last active
December 18, 2015 02:53
-
-
Save YumaInaura/f71c059e563d4bbdd64e to your computer and use it in GitHub Desktop.
MySQL | 英数字以外とアンダーバー 以外をデータベース名 / テーブル名に使う時はバッククォートで囲う ref: http://qiita.com/Yinaura/items/823c12fc1fd36bd18b63
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql> CREATE DATABASE e-x-a-m-p-l-e; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 '-x-a-m-p-l-e' at line 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysql> CREATE DATABASE `e-x-a-m-p-l-e`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Query OK, 1 row affected (0.01 sec) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE DATABASE `e x a m p l e`; | |
| CREATE DATABASE `e/x/a/m/p/l/e`; | |
| CREATE DATABASE `e*x*a*m*p*l*e`; | |
| CREATE DATABASE `えぐざんぷる`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE DATABASE ` e x a m p l e `; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ERROR 1102 (42000): Incorrect database name ' e x a m p l e ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment