Answers for "mysql select all table names"

SQL
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%';
Posted by: Guest on May-28-2020
0

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';
Posted by: Guest on November-12-2020

Code answers related to "mysql select all table names"

Code answers related to "SQL"

Browse Popular Code Answers by Language