posted 16 years ago
Hi Everyone,
I have to insert records to multiple tables at one go or in one batch. For example, my tables are: A, B, C
I have to use the prepared statement for executing an insert statement which in this case, there will be one prepared statement for each table.
The requirement is if one table fails to insert a record, the rest of the tables should also NOT insert records.
1) How should I accomplish the above requirement using prepared statements?
2) How can I rollback multiple prepared statements?
Help me asap please..
Thank you.