If your DBI and the MySQL bits are recent, you can do this:
# $dbi handle is available my @non_empties = grep { # almost like jeffa's now $dbh->selectcol_arrayref("select count(*) from $_")->[0] } $dbh->tables;
Update: rnahi is correct, $sth->rows won't do. Repaired
After Compline,
Zaxo
In reply to Re: DBI: Better way to find number of rows in a table?
by Zaxo
in thread DBI: Better way to find number of rows in a table?
by anjiro
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |