Help for this page

Select Code to Download


  1. or download this
    $dbh = DBI->connect($dsn, $user, $pass, { RaiseError => 1, AutoCommit 
    +=> 0 });
            #Here we open a locked access to the database 
            my $select_handle;
    ...
                ###CODE
             $dbh->do("COMMIT WORK");  
            };
    
  2. or download this
    WARNING:  there is already a transaction in progress