On 11 Feb 2003, at 10:30, Deependra b. Tandukar wrote: > How do I select the very last record in a column in MySQL database?
That depends on what you mean by "last record". What are you sorting by? Once you've figured that out, do a query like this: SELECT * FROM table_name ORDER BY sort_column DESC LIMIT 1; -- Keith C. Ivey <[EMAIL PROTECTED]> Tobacco Documents Online http://tobaccodocuments.org Phone 202-667-6653 --------------------------------------------------------------------- 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