0
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 3 years have passed since last update.

PostgreSQLの識別子は小文字で書こう

Posted at

PostgreSQLでの識別子に大文字を使うと、Testというデータベースを探したいのにtestと認識され、

postgres=# drop database Test;
ERROR:  データベース"test"は存在しません

と大文字小文字の区別ができず困った!

結論

そもそもデータ定義に大文字は使わない方がいい。
そして、もし作ってしまった場合はデータベース名などを""(ダブルクォーテーション)で囲むと良さそうです!

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?