|
|
| Perl-Sensitive Sunglasses | |
| PerlMonks |
Re: Perl::DBI - return column headerby pfaut (Priest) |
| on Dec 10, 2008 at 15:51 UTC ( #729439=note: print w/ replies, xml ) | Need Help?? |
|
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.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||