in reply to How to use Perl DBI to select just on column of db
The second argument is the "attributes" hashref, which can cause the method to fetch more than one column, and/or select which column(s) are fetched. See the docs.my $sth = $dbh->prepare("select val1 from tb11 where x=?"); ... $dbh->selectcol_arrayref($sth, undef, $x);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to use Perl DBI to select just on column of db
by lightoverhead (Pilgrim) on Mar 18, 2011 at 15:37 UTC |