Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI

by twotone (Beadle)
on May 29, 2009 at 05:07 UTC ( [id://766807]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI
in thread Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI

Assuming you have already prepared and executed statement handle $sth, $sth->{NAME} will return an array ref of the column names, so

my @columns = @{$sth->{NAME}};

gives you an array of your column names.

--------------
www.theduttons.com
  • Comment on Re^3: Topics in Perl Programming: Table-Mutation Tolerant Database Fetches with DBI
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2025-05-24 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.