get all table names in mysql code example
Example 1: get all tables with column name sql
SELECT c.name AS 'ColumnName'
,t.name AS 'TableName'
FROM sys.columns c
JOIN sys.tables t ON c.object_id = t.object_id
WHERE c.name LIKE '%MyName%'
ORDER BY TableName
,ColumnName;
Example 2: mysql find tables with name
SELECT table_name
FROM information_schema.tables
WHERE table_type = 'base table' AND table_name like '%YOUR TABLE NAME%';