Re: case sensitivity

Поиск
Список
Период
Сортировка
От Brett W. McCoy
Тема Re: case sensitivity
Дата
Msg-id Pine.LNX.4.30.0102282146200.5428-100000@chapelperilous.net
обсуждение исходный текст
Ответ на case sensitivity  ("Peter T. Brown" <peter@memeticsystems.com>)
Список pgsql-novice
On Wed, 28 Feb 2001, Peter T. Brown wrote:

> I've noticed that when creating databases, column names always end up in
> lower case. Is there anyway to use mixed case column names?

Quote your column names when you create them:

create table mytable (
    "Id" integer primary key,
    "UserName" varchar(25)
);

You will also have to quote the names in query statements as well, IIRC.

-- Brett
                                     http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
If you notice that a person is deceiving you, they must not be
deceiving you very well.


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

Предыдущее
От: "Peter T. Brown"
Дата:
Сообщение: case sensitivity
Следующее
От: Designer
Дата:
Сообщение: REMOVAL FROM LIST