hakkr has asked for the wisdom of the Perl Monks concerning the following question:
thanks###call below sub runsql("select * from table where 1=? and 2=?",$dbh,[$1,$2]); sub runsql { my $sql=shift; my $dbh=shift; my $vars=shift; my $sth=$dbh->prepare_cached($sql); $sth->execute(@$vars); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: bind variables with array
by gmax (Abbot) on Jun 07, 2004 at 15:45 UTC | |
by hakkr (Chaplain) on Jun 08, 2004 at 11:27 UTC |