Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Field names from DBI?by Lachesis (Friar) |
on Jun 10, 2003 at 11:13 UTC ( [id://264629]=note: print w/replies, xml ) | Need Help?? |
To get the table field names you can do the following
$dbh should be your connected DB handle $fields will be an arrayref of the fieldnames You can also look at the table_info method but check the docs for your DBD driver to see if its supported
In Section
Seekers of Perl Wisdom
|
|