Re: Re: case sensitivity

From: Gilles DAROLD <gilles(at)darold(dot)net>
To: Simon Crute <simon-news(at)nospam(dot)geordie(dot)demon(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Re: case sensitivity
Date: 2001-05-14 22:49:12
Message-ID: 3B0060E8.EDCF98D7@darold.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Simon Crute wrote:

> If anyone's interested,
> I found the answer to my first question buried in the DBI docs
> (fetch_hashref("NAME_uc") if anyone's interested)
>
> With regards to case
> > AFAIK we're exactly as picky about it as Oracle, just in the opposite
> > direction.
>
> I think there's some differences in function names. In oracle I think you
> can get away with count(), or COUNT(), in postgres it has to be COUNT(), but
> this was probably going through the perl DBI, so that may have been
> complicating things.

Oracle doesn't care about case sensitive in queries, Postgres too if you don't
quote tablename or columnname at creation time. If you use quote and upercase
at creation time you may quote it as well in you're queries. Function can be
lower
or upper case it doesn't matter at least in PostgreSQL 7.0.3.

SELECT COUNT(*) FROM "T_USERPREF";
select count(*) from "T_USERPREF";

Works well.

But you want columname returned as uppercase and you find the way...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message GH 2001-05-14 22:51:44 Re: PostgreSQL in Comparison to mySQL
Previous Message Jason 2001-05-14 22:22:36 PostgreSQL in Comparison to mySQL