Help for this page

Select Code to Download


  1. or download this
      open (FILE,$dir) || &error("Can't open $dir: $!");
      $sth=$dbh->prepare("insert into convert.sql_edits values (?, ?)");
    ...
      }
      $sth->finish;
      close FILE;
    
  2. or download this
      $sth=$dbh->do($sql) ||
        &error("Unable to perform update statement:<br /><br />$sql<br /><
    +br />$DBI::errstr\n");
    ...
      $dbh->commit() ||
         &error("Unable to commit changes made by the update statement: <b
    +r /><br />$sql<br /><br />$DBI::errstr\n");;
      $sth->finish;