Re: [bug?] oddity creating table with uppercase initial

Поиск
Список
Период
Сортировка
От Jeff Eckermann
Тема Re: [bug?] oddity creating table with uppercase initial
Дата
Msg-id 20030608184151.27602.qmail@web20807.mail.yahoo.com
обсуждение исходный текст
Ответ на [bug?] oddity creating table with uppercase initial  (Paul Makepeace <postgresql.org@paulm.com>)
Список pgsql-novice
SQL is case insensitive, except for the actual data.
Most commercial databases deal with this by forcing
everything to upper case (the SQL standard appears to
support this approach); PostgreSQL forces everything
to lower case.  This was a choice made long ago, and
nobody is in a hurry to change it.  Either way, you
will have a problem.

The answer is to double quote your mixed case
identifiers: select * from "Banks";

The name must have been quoted when the table was
created; if you are unaware of that, you must have
used some administration/migration tool that quoted
the names without your knowing.

Since you must remember to quote the names every time
you use them, mixed case names are a trap waiting to
spring.  My experience is that they are more trouble
than they are worth.

__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

В списке pgsql-novice по дате отправления:

Предыдущее
От: Joanne Formoso
Дата:
Сообщение: Strange Encryption Bug
Следующее
От: Bruno Wolff III
Дата:
Сообщение: Re: [bug?] oddity creating table with uppercase initial