Maybe a trigger will help. I'll give you an example to do that.
Suppose you have table ITEM with ITEM_ID field like this :
ITEM
---
ITEM_ID (PK)
Another table is ITEM_DETAIL with some other fields :
ITEM_ID
---
ITEM_ID (PK auto_increment)
ITEM_NAME
Then construct a trigger which will be invoked when an insertion happens. Like this :
CREATE TRIGGER `ITEM_DETAIL_INSERTION` AFTER INSERT ON `ITEM_DETAIL`
FOR EACH ROW
BEGIN
INSERT INTO `ITEM` (`ITEM_ID`) VALUES (NEW.ITEM_ID);
END;
This trigger will be fired when you insert into ITEM_DETAIL table. This allows you not to explicitly write additional code to insert into ITEM table. Note that you should modify your code to insert into ITEM_DETAIL.
Another advantages of using trigger is this trigger get fired anytime and anywhere insertion happens on ITEM_DETAIL. Perhaps a stored procedure, bulk insert, etc.