1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MySQLでカラムに使える文字種

Last updated at Posted at 2015-03-22

普段アルファベットや_ぐらいしか使用してなかったので知らなかったのですが, MySQLのカラム名には日本語でも半角スペース含んでいてもバックスラッシュなどの記号でも使用できるようです.

例えば, こんな感じに...

# Column Name
1 id
2 SELECT * FROM test WHERE id = 1;
3  ※ 全角スペース
4 日本語
5 ``
6 \n

ここまでなんでもOKだとは思わず驚きました.
自分たちで何らかの命名規則を決めておかないと後々面倒なことになりそうですね.

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?