in reply to DBI and using Oracle desc
Have a look at the database handle methods of DBI. Things like table_info() should help.