Name

Msql::listtables

Synopsis

@tables = $db->listtables;

Msql::listtables returns an array of the tables available in the current database. If the database has no tables, the function returns an empty array.

Example

use Msql;
my $db = Msql->connect;

my @tables = $db->listtables;
my $database = $db->database;
print "$database has the following tables:\n\n"
				. join("\n",@tables);

Get MySQL and mSQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.