From: Brett W. McCoy <bmccoy@lan2wan.com>
To: Zhenhua <zhenhua@megapro.com>
Cc: pgsql-sql@postgreSQL.org
Subject: Re: [SQL] How to sort date
Date: Sat, 6 Mar 1999 09:14:04 -0500 (EST)
Message-ID: <Pine.LNX.4.04.9903060912150.506-100000@dragosani.lan2wan.com> (raw)
In-Reply-To: <Pine.LNX.3.96.990306013709.26130A-100000@packers.cybercon.com>
On Sat, 6 Mar 1999, Zhenhua wrote:
> How do I order by date such as
> select * order by thedate?
>
> The prefered date format for thedate:
> March 5, 1999.
Dates are stored in a different format than how they are displayed. You
can sort on dates, or compare dates with =, >, <, etc., to determine which
dates are earlier than others, which are concurrent, and so on. Try doing
a date ordering and see what you get.
Brett W. McCoy
http://www.lan2wan.com/~bmccoy/
-----------------------------------------------------------------------
OS/2 must die!
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GAT dpu s:-- a C++++ UL++++$ P+ L+++ E W++ N+ o K- w--- O@ M@ !V PS+++
PE Y+ PGP- t++ 5- X+ R+@ tv b+++ DI+++ D+ G++ e>++ h+(---) r++ y++++
------END GEEK CODE BLOCK------
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-sql@postgresql.org
Cc: bmccoy@lan2wan.com, zhenhua@megapro.com
Subject: Re: [SQL] How to sort date
In-Reply-To: <Pine.LNX.4.04.9903060912150.506-100000@dragosani.lan2wan.com>
References: <Pine.LNX.3.96.990306013709.26130A-100000@packers.cybercon.com> <Pine.LNX.4.04.9903060912150.506-100000@dragosani.lan2wan.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