I have a mysql database. Lets say it has a table called "maintable" with primary key as main_id. I want to add other tables to the database and use main_id as foriegn keys in those tables. If I want to start with the last row of the maintable how can I using a perl script get main_id from the last row of the maintable. Note that maintable and the new added tables will keep growing in size. Please help me with this mysql query. Thanks.
--------------------------------------------------------------------- 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