Think about Loose Coupling | |
PerlMonks |
Re: Field names of database table from DBIby plaid (Chaplain) |
on Jul 31, 2000 at 21:50 UTC ( [id://25303]=note: print w/replies, xml ) | Need Help?? |
The short answer is, no, there's not a cleaner, portable
way to get a list of field names without doing some kind of
select statement. If you don't mind sacrificing a little
portability, you can use a driver-specific way to do it.
For example, in DBD::mysql, you could do
Check your appropriate DBD::driver manpage for more specific details if you choose to go this route.
In Section
Seekers of Perl Wisdom
|
|