Help for this page

Select Code to Download


  1. or download this
    my $dbh = DBI->connect(blah) or die $DBI::errstr;
    my $sth = $dbh->prepare('INSERT INTO MYTABLE(col1 col2) VALUES (?,?)')
    +;
    $sth->execute(@data);
    
  2. or download this
    my $dbh = DBI->connect(blah) or die $DBI::errstr;
    my $sth = $dbh->prepare('UPDATE MYTABLE SET col1=?,col2=?');
    $sth->execute(@data);