I need to get some specific tables in the database, sample.
SELECT table1, table2 table3 FROM data_base ORDER BY DESC;
I have found that I can do to get all tables: SHOW TABLES; But I want to bring me specific tables.
¿They know any way?
I found this way also:
SELECT TABLE_NAME AS tb_name
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_NAME = 'city' AND TABLE_NAME = 'city'
AND TABLE_SCHEMA='test_offers';
But it shows one specific table if another conditional, then shows me many repeated tables.
Much appreciate your support!
table_name in ('city','table1','table2')to get multiple tables