records returned by DBI::selectall_hashref() are not ordered
- From: xiaohuwang@xxxxxxxxxxx (Yu Wang)
- Date: Fri, 27 May 2005 05:50:16 +0000 (UTC)
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
.
- Follow-Ups:
- Re: records returned by DBI::selectall_hashref() are not ordered
- From: Yu Wang
- Re: records returned by DBI::selectall_hashref() are not ordered
- From: Ing. Branislav Gerzo
- Re: records returned by DBI::selectall_hashref() are not ordered
- From: Eric Frazier
- Re: records returned by DBI::selectall_hashref() are not ordered
- Prev by Date: Question about installation for DBI
- Next by Date: Re: records returned by DBI::selectall_hashref() are not ordered
- Previous by thread: Question about installation for DBI
- Next by thread: Re: records returned by DBI::selectall_hashref() are not ordered
- Index(es):