in reply to Recoding a multi-sql-statement storedProc transaction in a script

Create an array of SQL statements @stmts, e.g. by spliting a string or file on /;\n/, then change the eval to:
eval { for(@stmts) { my $sth = $dbh->prepare($_); $sth->execute; } };
Then rollback or commit as you already do.
  • Comment on Re: Recoding a multi-sql-statement storedProc transaction in a script
  • Download Code