From: | Jason Earl <jdearl(at)yahoo(dot)com> |
---|---|
To: | Bob Swerdlow <swerdlow(at)maine(dot)rr(dot)com>, pgsql-sql(at)postgresql(dot)org |
Subject: | Re: ORDER BY case insensitive? |
Date: | 2001-10-04 19:47:46 |
Message-ID: | 20011004194746.21583.qmail@web10004.mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
SELECT * FROM MyTable ORDER BY lower(Name);
Should do the trick.
Jason Earl
--- Bob Swerdlow <swerdlow(at)maine(dot)rr(dot)com> wrote:
> How do I get the rows sorted in a case insensitive
> way?
>
> I have some queries that basically fit the form:
> SELECT * FROM MyTable ORDER BY Name;
> When I view the results, all of the Name's that
> start with an upper case
> letter precede all of the Name's that start with a
> lower case letter. I
> want them all in alphabetic order, regardless of
> case.
>
> I've looked in PostgreSQL Introduction and Concepts
> by Bruce Momjian and in
> the FAQ at
> http://postgresql.overtone.org/docs/faq-english.html
>
> Thanks for your help.
>
> --
> Bob Swerdlow
> Chief Operating Officer
> Transpose, LLC
> rswerdlow(at)transpose(dot)com
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
__________________________________________________
Do You Yahoo!?
NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
From | Date | Subject | |
---|---|---|---|
Next Message | jason.servetar | 2001-10-04 19:59:24 | Re: to_date/to timestamp going to BC |
Previous Message | Tom Lane | 2001-10-04 19:21:42 | Re: Beginner's List |