From: Harry Yau <harry.yau@regaltronic.com>
To: PGG <pgsql-general@postgresql.org>
To: PGA <pgsql-admin@postgresql.org>
To: PGH <pgsql-hackers@postgresql.org>
Subject: Problem of Null Ordering
Date: Tue, 03 Dec 2002 17:13:09 +0800
Message-ID: <3DEC75A5.D544E5D@regaltronic.com> (raw)
Hi all,
I got some problem with the ordering.
I have a table which have a integer field , namely IF1, which is able to
have NULL value.
When I query this table and Order by IF1, the row that have the value of
NULL will come after the row that have a number value. I am wondering is
there anything I can do to make the row with Null value come before the
row with a number value. (Same as other RDBMS does - Sybase, MYSQL etc.)
Be more specified, I want to do something in the DBMS level instead of
doing some union queries. And apply this standard to all other query and
table in PGSQL.
Thank In Advance.
Harry Yau ( ^_^ )
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: harry.yau@regaltronic.com, pgsql-general@postgresql.org, pgsql-hackers@postgresql.org
Subject: Re: Problem of Null Ordering
In-Reply-To: <3DEC75A5.D544E5D@regaltronic.com>
References: <3DEC75A5.D544E5D@regaltronic.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