April 2008
Intermediate to advanced
566 pages
21h 55m
English
tables()
$dbh->tables($catalog, $database, $table, $type)
This function returns an array containing a list of tables and views for a database handle. In MySQL, the parameters are ignored and the values are drawn from the database handle. Here is an example:
my @tables = $dbh->tables();
foreach $table(@tables) {
print "$table \n";
}Read now
Unlock full access