Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 ( #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
Node Status?
node history
Node Type: note [id://766807]
help
Chatterbox?
[Cosmic37]: well... maybe not that much...
[corenth]: I want to climb in and look at how these neural networks work.
[erix]: I'd first make sure /that/ they work ;)

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2018-02-20 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (274 votes). Check out past polls.

    Notices?