Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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 radiator hisses contentedly...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (11)
As of 2018-07-19 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (408 votes). Check out past polls.

    Notices?