Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    use DBI;
    ...
    my $sth = $dbh->prepare('UPDATE sometable SET value1=? WHERE value2=?'
    +);
    $sth->execute('something with \n in it', 'something else which inciden
    +tally has 
    +a \n in it');
    
  2. or download this
    F:\BugZilla>testplaceholder.pl
        DBI::db=HASH(0x1ab141c) trace level set to 0x0/2 (DBI @ 0x0/0) in 
    +DBI 1.616-
    ithread (pid 3592)
    ...
    imp_dbh->pmysql: 1882fac
           ERROR: 1146 'Table 'bugs.sometable' doesn't exist' (err#0)
        <- DESTROY= ( undef ) [1 items] at TestPlaceholder.pl line 8