I am in need of a query to select all Tables, field names, from all tables where table has data.
I would like to be able to have Table, Field where given table has data rows in my result set.
I looked at this .... Getting MySQL Schemas for All Tables
and this ... How can I find all the tables in MySQL with specific column names in them?
I believe I need something similar to
SELECT COL.COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS COL
WHERE COL.TABLE_NAME IN
(SELECT DISTINCT TABLE_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME LIKE '%tbl%')
....
Having Count > 0