Re: Case sensitivity question . . .

From: Doug McNaught <doug(at)wireboard(dot)com>
To: "Peter E(dot) Chen" <pchen3(at)jhmi(dot)edu>
Cc: "Postgres (General)" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Case sensitivity question . . .
Date: 2002-01-02 21:06:00
Message-ID: m3lmfgzcnb.fsf@varsoon.denali.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Peter E. Chen" <pchen3(at)jhmi(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bryan White 2002-01-02 21:06:19 Re: Case sensitivity question . . .
Previous Message Gregory Wood 2002-01-02 21:00:12 Re: Case sensitivity question . . .