# given a DBI handle $dbh, a database table "foo" with a column "bar"
print join "\n", map join("\t", @$_), @{$dbh->selectall_arrayref( q{
select bar from foo
} )};
$_->execute(4, 5), $_->dump_results for $dbh->prepare(q{
SELECT one, two FROM three WHERE four = ? AND five = ?
});
-- [http://www.stonehenge.com/merlyn/|Randal L. Schwartz, Perl hacker]
Be sure to read [id://205373|my standard disclaimer] if this is a reply.
print Dumper $dbh->selectall_arrayref("SELECT one, two FROM three WHERE four=? AND five=?",{},4,5);
perlmonks.org content © perlmonks.org and jZed, merlyn, mjg
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03