mysql all table names in all databases code example
Example 1: sql query to list all tables in a database sql server
BY LOVE SINGH on May 19 2020
SELECT TABLE_NAME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_TYPE = 'BASE TABLE' AND TABLE_CATALOG='YOUR_Database_name'
Example 2: mysql select all table that have field names
SELECT DISTINCT
TABLE_NAME
FROM
INFORMATION_SCHEMA.COLUMNS
WHERE
COLUMN_NAME IN('column1', 'column2')
AND TABLE_SCHEMA = 'schema_name';