How to insert data from a form into two related mysql tables?

1

As you can see in the following image, I need to insert data in those two related tables and from the same form, since in the form I ask for all the information of the client table and also several addresses of it.

language: java. Database: mysql. Technologies: JSP, servlet.

    
asked by toty 08.03.2018 в 00:54
source

1 answer

-1

You could save the value obtained from the form in variables and make two Insert separately.

Here they clarify that it can be in the same transaction with the database, but not in a single statement (statement).

link

    
answered by 09.03.2018 в 00:10