Reputation: 12431
Is there a query that will return all the names of the tables inside a mySQL database?
Thanks!
Upvotes: 0
Views: 70
Reputation: 62359
If you're looking for something more versatile than SHOW TABLES; use
SELECT
TABLE_NAME
/*add some more columns if you need them*/
/* add some aggregating functions!*/
FROM
information_schema.TABLES
/* join some more tables! it's fun! */
WHERE
TABLE_SCHEMA = 'yourDatabaseName'
/*add your own conditions!*/
/* order, group, limit! */
Upvotes: 1