Class::DBI[::mysql]
Michael G Schwern
schwern at pobox.com
Tue Nov 20 18:46:00 CST 2001
On Wed, Nov 21, 2001 at 12:40:21AM -0000, Steve Foy wrote:
> > I'm wondering if there is a way to get some sort of list of all the tables
> > in the currently 'set_up' database.
>
> Sorry, what I mean to say was "Is there a way of getting some sort of list
> of all the tables in the currently 'set_up' database in Perl using
> Class::DBI?"
> Just to avoid the sacrastic comments like "That's great Steve, but what's
> your question?"
Just use the DBI table_info() or tables() methods.
print My::Class->db_Main->tables;
--
Michael G. Schwern <schwern at pobox.com> http://www.pobox.com/~schwern/
Perl Quality Assurance <perl-qa at perl.org> Kwalitee Is Job One
my mother once said
"never eat paste my darling"
would that I heeded
-- stimps
More information about the Belfast-pm
mailing list