retrieve last n records

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

 



I need to retrieve the last n records of a table, n will probably be 2
or 3.  I know that I can accomplish this by: select * from table order
by field DESC Limit n, but i would prefer not to do this way because it
interferes with my sorting mechanism on the main page.  Is there any
other way to do it?




-- 
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