Re: case sensitivity - Mailing list pgsql-novice

From Brett W. McCoy
Subject Re: case sensitivity
Date
Msg-id Pine.LNX.4.30.0102282146200.5428-100000@chapelperilous.net
Whole thread Raw
In response to case sensitivity  ("Peter T. Brown" <peter@memeticsystems.com>)
List 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 by date:

Previous
From: "Peter T. Brown"
Date:
Subject: case sensitivity
Next
From: Designer
Date:
Subject: REMOVAL FROM LIST