in reply to Re: Weird DBI/Array Use
in thread Weird DBI/Array Use
If you just want one column then
my @rows = @{ $dbh->selectcol_arrayref("SELECT id FROM blah") };
Otherwise do a full $dbh->selectall_arrayref as salvadors suggests or use the full prepare, execute, fetchrow syntaxes like you were doing originally.
For information on these syntaxes and more read up on the DBI docs.
|
|---|