Help for this page

Select Code to Download


  1. or download this
    my $sth = $dbh->prepare(<<SQL);
    insert into my_table (id, name) values ('15', 'Foo')
    SQL
    
  2. or download this
    my $sth = $dbh->prepare(<<SQL);
    insert into my_table (id, name) values (?, ?)
    SQL
    
  3. or download this
    $sth->execute('15', 'Foo');
    
  4. or download this
    my $sth = $dbh->prepare_cached(<<SQL);
    insert into my_table (id, name) values (?, ?)
    SQL
    $sth->execute('15', 'Foo');