Does the table have an auto_increment column? If so:
select * from table where autoinccolumn = LAST_INSERT_ID();
> I wrote a program to keep inserting rows to the databases. But I
> want to check the LAST row I inserted. Is there any good way to do it??
---------------------------------------------------------------------
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