Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: DBI with ORDER BY

by merlyn (Sage)
on Mar 09, 2005 at 23:19 UTC ( [id://438095]=note: print w/replies, xml ) Need Help??


in reply to Re: DBI with ORDER BY
in thread DBI with ORDER BY

Huh? The hashes are per-row. The rows still come out as a list or arrayref.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.


update: Yup, I never use fetchall_hashref, and was confusing it with things that I use. Sorry. Too many similar sounding names.

Replies are listed 'Best First'.
Re^3: DBI with ORDER BY
by crashtest (Curate) on Mar 09, 2005 at 23:45 UTC
    merlyn, I believe you're thinking of fetchrow_hashref and not fetchall_hashref. The latter does in fact retrieve all the results into a hash (a HoH), thereby effectively discarding any ordering an ORDER BY clause might have imposed.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://438095]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 15:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found