Re: Case problem

From: "Markus Meyer" <meyer(at)mesw(dot)de>
To: "PostgreSQL \(General\) Mailing List" <pgsql-general(at)postgresql(dot)org>, "Josh Samuels" <loadexfa(at)home(dot)com>
Subject: Re: Case problem
Date: 2001-10-23 22:49:17
Message-ID: HKECJNLJKDOEECLAOOJDAEFMCDAA.meyer@mesw.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hey Josh,

> I have tables with different case in them, for example Customers and
> CustomerID is a column in that table. When I try to access the table or
> column in either a php script or psql is converts everything to lowercase
> and then I can't use them...why! Doesn't Postgres support case? I can't
> read my code if everything is in lowercase. Thank you in advance.
Try using '"' around the names:

SELECT * FROM "Customers" WHERE "CustomerID" = 42;

Markus

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mikheev, Vadim 2001-10-23 22:52:30 Re: Database corruption?
Previous Message Stephan Szabo 2001-10-23 22:14:05 Re: Case problem