Re: Select <-> Case Insensitive

From: Mark Rae <m(dot)rae(at)inpharmatica(dot)co(dot)uk>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Select <-> Case Insensitive
Date: 2002-02-22 13:30:45
Message-ID: 3C764805.2ACA4DE0@inpharmatica.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Devrim GUNDUZ wrote:
> The query
>
> SELECT * from mytable order by lower(description);
>
> could solve your problem.

I seem to recall (From C/C++ at least) that you should upcase text
for case insensitive comparisons, as with some languages there is no
well defined upper->lower conversion, but there is always a
unique lower->upper transformation.

Is this correct for (Postgres)SQL locale support as well?

-Mark

--
Mark Rae Tel: +44(0)20 7074 4648
Inpharmatica Fax: +44(0)20 7074 4700
m(dot)rae(at)inpharmatica(dot)co(dot)uk http://www.inpharmatica.co.uk/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pam Wampler 2002-02-22 13:30:54 Re: number of connections to postmaster
Previous Message Devrim GUNDUZ 2002-02-22 12:52:39 Re: Select <-> Case Insensitive