- or download this
my $sth = $dbh->prepare("
INSERT INTO Table (
...
)
");
$sth->execute($foo, $bar);
- or download this
my @fields = keys(%data);
my $q_fields = join ', ', map $dbh->quote_identifier($_), @fields;
...
)
");
$sth->execute();
- or download this
my @fields = keys(%data);
my $q_fields = join ', ', map $dbh->quote_identifier($_), @fields;
...
)
");
$sth->execute(@data[ @fields ]);