Re: records returned by DBI::selectall_hashref() are not ordered
- From: ef@xxxxxxxxxxxxxx (Eric Frazier)
- Date: Thu, 26 May 2005 23:19:58 -0700
try selectall_arrayref :)
At 10:50 PM 5/26/2005, Yu Wang wrote:
Example: (Using DBD::SQLite)
$ref_rsch = $dbh->selectall_hashref(' SELECT * FROM rsch ORDER BY Idx ', 'Idx');
while (my ($k, $v) = each(%$ref_rsch)){ while (my ($k, $v) = each(%$v)){ print "$k => $v\n"; } }
Any ideas and suggestions?
Thanks,
Yu
.
- References:
- Prev by Date: records returned by DBI::selectall_hashref() are not ordered
- Next by Date: Re: records returned by DBI::selectall_hashref() are not ordered
- Previous by thread: records returned by DBI::selectall_hashref() are not ordered
- Next by thread: Re: records returned by DBI::selectall_hashref() are not ordered
- Index(es):