The SHOW TABLES statement reference.
The FROM or IN clause specifies the database to show tables from. If not specified, tables from the current database are shown.
The LIKE or ILIKE clause filters table names based on a pattern. ILIKE performs case-insensitive matching.
The NOT LIKE or NOT ILIKE clause excludes tables whose names match the specified pattern.
The LIMIT clause restricts the number of rows in the result set.
The INTO OUTFILE clause writes the result to a file.
The FORMAT clause specifies the output format.
Show tables containing ‘taco’ in their names:
Result:
Show tables containing ‘TACO’ in their names (case-insensitive):
Result:
Show tables not containing ‘salsa’ in their names:
Result:
Show the first two tables:
Result:
The SHOW TABLES statement reference.
The FROM or IN clause specifies the database to show tables from. If not specified, tables from the current database are shown.
The LIKE or ILIKE clause filters table names based on a pattern. ILIKE performs case-insensitive matching.
The NOT LIKE or NOT ILIKE clause excludes tables whose names match the specified pattern.
The LIMIT clause restricts the number of rows in the result set.
The INTO OUTFILE clause writes the result to a file.
The FORMAT clause specifies the output format.
Show tables containing ‘taco’ in their names:
Result:
Show tables containing ‘TACO’ in their names (case-insensitive):
Result:
Show tables not containing ‘salsa’ in their names:
Result:
Show the first two tables:
Result: