Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

(jeffa) 2Re: Getting MySQL Data into an Array.

by jeffa (Bishop)
on Jan 07, 2002 at 10:08 UTC ( #136787=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Getting MySQL Data into an Array.
in thread Getting MySQL Data into an Array.

Yes, that is indeed cool, but don't let your boss catch you using that. DBI has a method that will return a column for you:
my @companies = @{$dbh->selectcol_arrayref(' SELECT company FROM company_public ')};

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
F--F--F--F--F--F--F--F--
(the triplet paradiddle)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (10)
As of 2018-10-15 16:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When I need money for a bigger acquisition, I usually ...














    Results (82 votes). Check out past polls.

    Notices?