* Deependra b. Tandukar > How do I select the very last record in a column in MySQL database?
The expression "last record" implies that there is an ORDER in your query... if you add the keyword "DESC" and a "LIMIT 1", you should get the desired result: SELECT * FROM mytable ORDER BY mycolumn DESC LIMIT 1 <URL: http://www.mysql.com/doc/en/SELECT.html > HTH, -- Roger --------------------------------------------------------------------- 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