did you try MAX(ID)?

cheers,
Ki Mien

-----Original Message-----
From:   "Myk Melez" <[EMAIL PROTECTED]>
Sent:   Saturday, May 25, 2002 1:41 AM
To:     "saraswathy saras" <[EMAIL PROTECTED]>, "mysql" <[EMAIL PROTECTED]>
Subject:        Re: query

saraswathy saras wrote:

> is there any other specific command instead order by ID DESC to select 
> all the record from table where the ID is the last ID.The ID is 
> autoincrement.

Not sure from your message if you already know this, but ORDER BY ID 
DESC LIMIT 1 gives you what you want.

-myk

mysql, query


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



------------------------------------------------------------------------
Take part in the Penning on Squares Chinese Essay Writing Contest.
Submit your masterpieces or vote for your favourite works, and win attractive prizes.
Be there or be SQUARE!
http://sea.litcontest.lycosasia.com

cOntact @ Lycos <http://contact.lycosasia.com>
= 20MB for email and filestore + lots of other goodies...

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