1
I will give as an example 2 tables of a database: User and Address. where the user has the idEndereco attribute as a foreign key to the address table. The ids are with AUTO INCREMENT, yet, how do I know what the foreign key value of the address? Will I have to do the Insert at address, and then select to get your primary key? There is a more effective method?
I don’t understand very well what you want, could you be more specific? Make a tour also to learn more about the site.
– gato