0
Suppose two tables "company" and "employee" within employee has a key Foreign for the company
When the user goes to create a new company he answers a form that in this form he adds the name of the employees
what I want to do : When he clicks 'Ubmit', create the company and get her ID. Then with the ID create the employees and put this ID in the foreign key
How do I get this ID ? Do I need to do a database query or is there an easier way ? Because it is generated automatically by the bank, with the function of auto increment of it. I do not pass manually
Other: Make Insert in two tables at the same time
– Woss
Other: How the Insert would look in a table that only has a foreign key
– Woss