Is the DBI statement handle attribute 'NAME' what you're looking for?
NAME (array-ref, read-only)
Returns a reference to an array of field names for each column. The names may contain spaces but should not be truncated or have any trailing space. Note that the names have the letter case (upper, lower or mixed) as returned by the driver being used. Portable applications should use NAME_lc or NAME_uc.
print "First column name: $sth->{NAME}->[0]\n";
In reply to Re: Controlling order of fields in report
by bobf
in thread Controlling order of fields in report
by hesco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |