Try this:

        select * from my_table order by my_datetime ASC;

        select * from my_table order by my_datetime DESC;

Cheers,
T

On Thursday 01 November 2001 06:15 am, brainheap wrote:
> Hi ppl!
>
> I have a table with datetime type column in it.
>
>
> when I make request "select * from my_table order by my_datetime"
>
> I get the normal sort i.e. first the oldest dates but I want to get
> reverse sort to have most recent dates to be the first.
>
> How can I do this?
>
> Thanks for any help :0)
>
> Alex
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to