I need to write a stored procedure that inserts a record into 2 separate tables. However, the insert into the second table needs to take the auto incrementing primary key from the record inserted into the first table for one of its fields.
Can anybody tell me how to do this?
Any assistance would be really appreciated.
Cheers,
lfc77
Can anybody tell me how to do this?
Any assistance would be really appreciated.
Cheers,
lfc77