Re: Case insensitive ORDER BY

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Mark Lubratt <mark(dot)lubratt(at)indeq(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Case insensitive ORDER BY
Date: 2004-03-18 16:48:20
Message-ID: 200403181648.i2IGmKf17712@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mark Lubratt wrote:
> Is there a way to make ORDER BY case insensitive?

Sure:

ORDER BY upper(col)

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Mike Mascari 2004-03-18 17:24:18 Oddity with literal intervals
Previous Message Larry Rosenman 2004-03-18 16:31:31 Re: Case insensitive ORDER BY