If you want to get the columns from a MySQL table (not an arbitrary query), it's simpler, as shown in DBI Recipes, to use selectcol_arrayref combined with describe.
my $col_names = $dbh->selectcol_arrayref( qq{describe $table} );
In reply to Re: List columns for a MySQL table
by dbwiz
in thread List columns for a MySQL table
by EvanK
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |