Re: Case sensitivity question . . .

Поиск
Список
Период
Сортировка
От Gregory Wood
Тема Re: Case sensitivity question . . .
Дата
Msg-id 001301c193d1$a4e1bd70$7889ffcc@comstock.com
обсуждение исходный текст
Ответ на Case sensitivity question . . .  ("Peter E. Chen" <pchen3@jhmi.edu>)
Список pgsql-general
http://www7.us.postgresql.org/users-lounge/docs/7.1/user/sql-syntax.html#SQL
-SYNTAX-IDENTIFIERS

----- Excerpt -----
There is a second kind of identifier: the delimited identifier or quoted
identifier. It is formed by enclosing an arbitrary sequence of characters in
double-quotes ("). A delimited identifier is always an identifier, never a
key word. So "select" could be used to refer to a column or table named
"select", whereas an unquoted select would be taken as a key word and would
therefore provoke a parse error when used where a table or column name is
expected. The example can be written with quoted identifiers like this:

UPDATE "my_table" SET "a" = 5;

Quoted identifiers can contain any character other than a double quote
itself. This allows constructing table or column names that would otherwise
not be possible, such as ones containing spaces or ampersands. The length
limitation still applies.

Quoting an identifier also makes it case-sensitive, whereas unquoted names
are always folded to lower case. For example, the identifiers FOO, foo and
"foo" are considered the same by Postgres, but "Foo" and "FOO" are different
from these three and each other. [1]
----------

That being said, I wouldn't do it unless you really need it.

Greg

----- Original Message -----
From: "Peter E. Chen" <pchen3@jhmi.edu>
To: "Postgres (General)" <pgsql-general@postgresql.org>
Sent: Wednesday, January 02, 2002 3:21 PM
Subject: [GENERAL] Case sensitivity question . . .


> Hey All,
>
> I'm trying to create new databases and tables.  The database names and
> tables always end up in lower case.  Is there a way to have some upper
case
> letters in database and table names?
>
> Thanks for any help.
>
> Peter
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>


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

Предыдущее
От: "Peter E. Chen"
Дата:
Сообщение: Question on populating tables . . .
Следующее
От: Doug McNaught
Дата:
Сообщение: Re: Question on populating tables . . .