I have a question using transactions in a JDBC connection.
I know how to use setAutoCommit(), roolback() and commit().
But now I read that it is also possible to use these commands in a sql script:
begin transaction;
create table table1 ();
create table table2 ();
commit;
What is the difference? And what happens if I set the auto-commit mode of the JDBC connection to false and then run the sql script? Does the transaction commands then only have temporary effects or are the commands ignored?