Gossamer Forum
Home : General : Perl Programming :

Re: [Wil] $sth->fetchall_array

Quote Reply
Re: [Wil] $sth->fetchall_array In reply to
I'm not sure if it's the fastest way but it works. I ended up using:

Code:
my $data = $sth->fetchall_arrayref({});
$sth->finish();

foreach (@$data) {
$res{$_->{Email}} = $_->{Email};
}

$DBH->disconnect();

return %res;

Last edited by:

RedRum: Sep 28, 2001, 1:48 PM
Subject Author Views Date
Thread $sth->fetchall_array Paul 12031 Sep 27, 2001, 2:41 PM
Post Re: [RedRum] $sth->fetchall_array
tandat 11810 Sep 27, 2001, 7:48 PM
Thread Re: [RedRum] $sth->fetchall_array
Wil 11873 Sep 28, 2001, 2:11 AM
Post Re: [Wil] $sth->fetchall_array
Paul 11828 Sep 28, 2001, 3:31 AM
Thread Re: [Wil] $sth->fetchall_array
Paul 11804 Sep 28, 2001, 1:48 PM
Post Re: [RedRum] $sth->fetchall_array
Wil 11761 Sep 29, 2001, 6:59 AM