The 'SHOW TABLES' MySQL command will return a list of all the tables in your database. No error checking for brevity. Obviously you can just load this into a hash for a quick lookup.
require DBI; my $dbh = DBI->connect( ..blah.. ); my $sth = $dbh->prepare('SHOW TABLES'); $sth->execute(); while (my ($table) = $sth->fetchrow_array ) { print "$table\n"; }
cheers
tachyon
s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print
In reply to Re: MySQL Database Check...
by tachyon
in thread MySQL Database Check...
by powerhouse
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |