From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | "kdealba(at)uaaan(dot)mx" <kdealba(at)uaaan(dot)mx> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Ordering in SELECT statement |
Date: | 2007-06-26 20:12:02 |
Message-ID: | 46817312.5090004@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
kdealba(at)uaaan(dot)mx wrote:
>
> Hello,
>
> I use the following command "SELECT * FROM employees ORDER BY name"
> (a very simple sql statement) the main thing here is that I get a
> list ordered without taking into accound the spaces. For example, I
> get the following listing:
> ABAB
> AB CD
> ABD E
> AB EF
>
> and what I need is the following ("old fashion", that is, the
> "SPACE" is another character whose ASCII value is before any other
> LATIN letter's!!)
You'll want to read up on locales - you want the "C" locale. I'm afraid
it'll mean dumping your database(s) and running initdb again.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Glaesemann | 2007-06-26 20:14:21 | Re: Ordering in SELECT statement |
Previous Message | Richard Huxton | 2007-06-26 20:10:58 | Re: upgrade 8.1.4 -> latest, sort order subquery |