Help for this page

Select Code to Download


  1. or download this
    use Storable qw(freeze);
    use DBI;
    ...
    my $command = "insert into test(a,b) values(1,?)";
    my $sth = $dbh->prepare($command);
    $sth->execute($frozen);
    
  2. or download this
    use DBI;
    use strict;
    ...
    my $command = "insert into test(key,b) values(1,?)";
    my $sth = $dbh->prepare($command);
    $sth->execute($frozen);