On Mon, 26 Nov 2001, Jack wrote:

> Dear all
> I had a table which with Auto_increment, which means when i insert a record
> there will be a number insert to lead as the location of the record.
> here is my question.
> I was try to get the most last five records , but i don't know which query
> should i use?

SELECT * FROM mytable ORDER BY autocolumn DESC LIMIT 5;

Rgds, Thomas


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