How will you perform transaction using JDBC

Showing Answers 1 - 4 of 4 Answers

Taranjeet

  • Aug 24th, 2005
 

Using the autocommit method provided by the connection object.

  Was this answer useful?  Yes

Create the connection

Set the autocommit property to be false
Execute the queries needed
Commit the transaction by calling the commit() on the connection.
Set the transaction autocommit property to be true
Close the connection.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions