From: | "Brett W(dot) McCoy" <bmccoy(at)lan2wan(dot)com> |
---|---|
To: | Zhenhua <zhenhua(at)megapro(dot)com> |
Cc: | pgsql-sql(at)postgreSQL(dot)org |
Subject: | Re: [SQL] How to sort date |
Date: | 1999-03-06 14:14:04 |
Message-ID: | Pine.LNX.4.04.9903060912150.506-100000@dragosani.lan2wan.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
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------
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 1999-03-06 16:54:46 | Re: [SQL] CREATE TABLE (fwd ): again! |
Previous Message | Fernando Carvalho | 1999-03-06 10:32:29 | [SQL] Relations |