in reply to Re: perl dbi - no column headings
in thread perl dbi - no column headings

I strongly disagree - you shouldn't run a select * just to get the column names of another query.

Use the functionality provided by DBI - namely the $sth->{NAME} attribute (or the related NAME_lc and NAME_uc for the lower case and upper case versions) - this will provide column names in the same order as the current query and is completely generic so that it should handle all situations.

Michael