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