After you add the new record into table A, you can use the LAST_INSERT_ID() function to retrieve the value of the auto_increment PK field. Look here for more information on this function: http://dev.mysql.com/doc/refman/5.0/en/information-functions.html
Answers & Comments
After you add the new record into table A, you can use the LAST_INSERT_ID() function to retrieve the value of the auto_increment PK field. Look here for more information on this function: http://dev.mysql.com/doc/refman/5.0/en/information-functions.html