Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Using Multiple Statements MySQL

by gav^ (Curate)
on Jul 19, 2002 at 21:07 UTC ( #183456=note: print w/ replies, xml ) Need Help??


in reply to Using Multiple Statements MySQL

You could just save some trips and do:

# get a hash ref keyed to id my $data = $dbh->selectall_hashref( 'select id, name, parent from category', 'id' );
Then you can work out yourself what is the parent of each item.

gav^


Comment on Re: Using Multiple Statements MySQL
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-04-20 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (485 votes), past polls