JDBC EDB
Tomcat --------------------------
when I built up the Database, I seperate a customer's information into 2 tables in 1 database.
when I get customer's information from a html form, I try to insert these information into 2 tables at the same time, the 2 tables have a cust_id as the same coloum,
-----------------------
the question is:
how can I control when inserting the data, if one of the sql failed, the other successed one could roll back?