Re: Selecting last record only

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



thx a bunch :) ... figured it would be something simple ... :p

Rene

Fate would have it, that on Wed, 21 Jan 2004 11:55:23 -0800, Micah Stevens
wrote:

>Reverse the order and limit the result to 1. 
>
>For example, change:
>SELECT date, item from some_table
>
>To:
>
>Select date, item from some_table ORDER BY date DESC LIMIT 1
>
>to get the latest dated item. 
>
>-Micah

Rene Brehmer
aka Metalbunny

http://metalbunny.net/
References, tools, and other useful stuff...

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux