Don't ask to ask, just ask | |
PerlMonks |
Re: Getting a list of columns from a MySQL Tableby seattlejohn (Deacon) |
on Jul 23, 2002 at 04:59 UTC ( [id://184336]=note: print w/replies, xml ) | Need Help?? |
After you call $sth->execute, you should be able to get the number and names of columns via $sth->{NUM_OF_FIELDS} and $sth->{NAME}->[$n] where $n is an index from 0..$sth->{NUM_OF_FIELDS}-1
In Section
Seekers of Perl Wisdom
|
|