Re: Case sensitivity question . . . - Mailing list pgsql-general

From Doug McNaught
Subject Re: Case sensitivity question . . .
Date
Msg-id m3lmfgzcnb.fsf@varsoon.denali.to
Whole thread Raw
In response to Case sensitivity question . . .  ("Peter E. Chen" <pchen3@jhmi.edu>)
List pgsql-general
"Peter E. Chen" <pchen3@jhmi.edu> writes:

> 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?

Put the mixed-case table names in double quotes, eg:

create table "MyTable" ("myField" integer);

Note that if you do this you will ALWAYS have to use double-quotes
around those names, as the query parser always folds case otherwise.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863

pgsql-general by date:

Previous
From: "Gregory Wood"
Date:
Subject: Re: Case sensitivity question . . .
Next
From: Dave Trombley
Date:
Subject: Re: Case sensitivity question . . .