Re: [SQL] How to sort date
От | Brett W. McCoy |
---|---|
Тема | Re: [SQL] How to sort date |
Дата | |
Msg-id | Pine.LNX.4.04.9903060912150.506-100000@dragosani.lan2wan.com обсуждение исходный текст |
Ответ на | How to sort date (Zhenhua <zhenhua@megapro.com>) |
Список | 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------
В списке pgsql-sql по дате отправления: