From: Josh Berkus <josh@agliodbs.com>
To: jack <datactrl@tpg.com.au>
To: pgsql-sql@postgresql.org
To: Josh Berkus <josh@agliodbs.com>
Subject: Re: data order problem
Date: Mon, 15 Apr 2002 08:46:46 -0700
Message-ID: <web-1370650@davinci.ethosmedia.com> (raw)
In-Reply-To: <001301c1e448$609a7cc0$1400a8c0@jac>
Jack,
> Suppose '_' stands for a space character. The one column table,xxx,
> contains
> following data.
> column name is suburb and is set as primary key.
>
> 'THE_AAA'
> 'THE_BBB'
> 'THE_CDD'
> 'THECCC'
>
> After I do
> "SELECT * FROM xxx ORDER BY suburb;"
> I've got this.
>
> 'THE_AAA'
> 'THE_BBB'
> 'THECCC'
> 'THE_CDD'
>
> But I expect it should be like ...
> 'THE_AAA'
> 'THE_BBB'
> 'THE_CDD'
> 'THECCC'
>
> Because, according to ascii code, space character should be smaller
> than 'C'
It is. I'm afraid that you compiled your database with some kind of
non-standard sort order, possibly due to the OS you are using. I can't
help you with this; I'm just a SQL junkie. Good luck!
-Josh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com, datactrl@tpg.com.au
Subject: Re: data order problem
In-Reply-To: <web-1370650@davinci.ethosmedia.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox