Re: Case sensitivity question . . .

Doug McNaught <doug@wireboard.com>

From: Doug McNaught <doug@wireboard.com>
To: "Peter E. Chen" <pchen3@jhmi.edu>
Cc: "Postgres (General)" <pgsql-general@postgresql.org>
Date: 2002-01-02T21:06:00Z
Lists: 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