sub get_value { my ($dbh, $field_name) = @_; my $sth = $dbh->prepare_cached("select $field from table where id = +?"); my $value = $sth->fetchrow_array; $sth->finish; $value; }
In reply to Re: DBI Efficiency
by runrig
in thread DBI Efficiency
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |