in reply to Field names of database table from DBI
The DBI docs lists the table_info and tables call which get information
about the tables in the DB. They are listed as experimental,
so they may not be well supported by your DBD (and may even
disapear in future versions of DBI). I've never used them,
but they may be worth a try.