From: | Christopher Browne <cbbrowne(at)acm(dot)org> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Natural ordering in postgresql? Does it exist? |
Date: | 2004-12-11 04:31:15 |
Message-ID: | 31vbgiF3fp2ofU4@individual.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Quoth clarkendrizzi(at)hotmail(dot)com ("Clark Endrizzi"):
> I have a field that I'll be ordering and I noticed that ordering is
> done logically and would confuse my users here (1,12,16,4,8, etc).
>
> I'm writing an application in PHP that connects to Postgres and while
> I know that PHP has some powerful natural ordering functions it would
> be much easier if I could just use something from postgres directly.
> Does there exist any way to order naturally?
If you wish to impose an ordering on an SQL query, you must specify
that ordering using an "ORDER BY" clause.
That's not a PostgreSQL issue; that's how SQL works.
--
output = ("cbbrowne" "@" "gmail.com")
http://linuxfinances.info/info/linux.html
Rules of the Evil Overlord #204. "I will hire an entire squad of blind
guards. Not only is this in keeping with my status as an equal
opportunity employer, but it will come in handy when the hero becomes
invisible or douses my only light source."
<http://www.eviloverlord.com/>
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Browne | 2004-12-11 04:31:16 | Re: any body able to access news.postgresql.org recently? |
Previous Message | Christopher Browne | 2004-12-11 04:29:32 | Re: Postgres 8 and Slony-1 |