The SHOW TABLES statement reference.
SHOW [FULL] [TEMPORARY] TABLES [{FROM | IN} <database>] [[NOT] LIKE | ILIKE '<pattern>'] [LIMIT <N>] [INTO OUTFILE <filename>] [FORMAT <format>]
SHOW TABLES FROM taco_shop;
SHOW TABLES LIKE '%taco%'; SHOW TABLES ILIKE '%TACO%';
SHOW TABLES NOT LIKE '%burrito%';
SHOW TABLES LIMIT 3;
SHOW TABLES INTO OUTFILE 'taco_tables.txt';
SHOW TABLES FORMAT Pretty;
SHOW TABLES FROM taco_shop LIKE '%taco%'
┌─name───────────────┐ │ taco_ingredients │ │ taco_orders │ └────────────────────┘
SHOW TABLES FROM taco_shop ILIKE '%TACO%'
┌─name─────┐ │ taco_ingredients │ │ taco_orders │ │ TacoSpecials │ └───────────┘
SHOW TABLES FROM taco_shop NOT LIKE '%salsa%'
┌─name──────────────┐ │ taco_ingredients │ │ taco_orders │ │ tortilla_types │ └───────────────────┘
SHOW TABLES FROM taco_shop LIMIT 2
┌─name──────────────┐ │ taco_ingredients │ │ taco_orders │ └───────────────────┘
SELECT name FROM system.tables [WHERE name [NOT] LIKE | ILIKE '<pattern>'] [LIMIT <N>] [INTO OUTFILE <filename>] [FORMAT <format>]
Was this page helpful?