Re: Case sensitive order by

From: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Case sensitive order by
Date: 2003-04-12 18:08:03
Message-ID: 20030412130803.B31861@flake.decibel.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Apr 11, 2003 at 03:15:41PM -0500, Bruno Wolff III wrote:
> On Fri, Apr 11, 2003 at 23:49:12 +0530,
> mallah(at)trade-india(dot)com wrote:
> >
> > > I want to do case sensitve sorting on a varchar field.
> >
> > the default ordering is case sensitive , what makes u feel
> > otherwise , could u give some examples?
>
> That depends on the locale. In US_EN ordering is not case sensitive.
> (Unless to strings are the same excepting their case.)

Stupid question: would US_EN also result in where clauses being
case-insensitive? I'd like that behavior, but am currently doing it
using where lower(blah) = lower('search phrase')
--
Jim C. Nasby (aka Decibel!) jim(at)nasby(dot)net
Member: Triangle Fraternity, Sports Car Club of America
Give your computer some brain candy! www.distributed.net Team #1828

Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Michael Paesold 2003-04-12 18:51:36 Re: Backpatch FK changes to 7.3 and 7.2?
Previous Message Joe Conway 2003-04-12 18:02:55 Re: Problem while building SRPM PostgreSQL on Red Hat Linux