Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Perl::DBI - return column header

by pfaut (Priest)
on Dec 10, 2008 at 15:51 UTC ( #729439=note: print w/ replies, xml ) Need Help??


in reply to Perl::DBI - return column header

After you execute the statement, the statement handle should contain a NAME attribute. This is a reference to an array containing the names of the columns returned. $sth->{NAME}[$i] will give you the name of column $i. See perldoc DBI.

90% of every Perl application is already written.
dragonchild


Comment on Re: Perl::DBI - return column header
Select or Download Code
Replies are listed 'Best First'.
Re^2: Perl::DBI - return column header
by Anonymous Monk on Aug 12, 2013 at 11:43 UTC
    Incase if we are not aware of the row header name or it's in the huge size 100 rows that doesn't make it a sense . correct ? So those cases how we neeed to handle it

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (7)
As of 2015-07-28 01:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (251 votes), past polls