Gossamer Forum
Home : General : Perl Programming :

$sth->fetchall_array

Quote Reply
$sth->fetchall_array
For some reason I don't have the option to use fetchall_array - do I have an old DBI?

Here's what perldoc DBI tells me I can use:

@row_ary = $sth->fetchrow_array;
$ary_ref = $sth->fetchrow_arrayref;
$hash_ref = $sth->fetchrow_hashref;

$ary_ref = $sth->fetchall_arrayref;

The query I'm using is SELECT Email FROM Members

What would be the best way to get the values into a hash?


Subject Author Views Date
Thread $sth->fetchall_array Paul 10060 Sep 27, 2001, 2:41 PM
Post Re: [RedRum] $sth->fetchall_array
tandat 9939 Sep 27, 2001, 7:48 PM
Thread Re: [RedRum] $sth->fetchall_array
Wil 9997 Sep 28, 2001, 2:11 AM
Post Re: [Wil] $sth->fetchall_array
Paul 9961 Sep 28, 2001, 3:31 AM
Thread Re: [Wil] $sth->fetchall_array
Paul 9930 Sep 28, 2001, 1:48 PM
Post Re: [RedRum] $sth->fetchall_array
Wil 9891 Sep 29, 2001, 6:59 AM