This statement is used to view all tables and views in the current database.
1 | SHOW TABLES [IN | FROM db_name] [LIKE regex_expression]; |
FROM/IN: followed by the name of a database whose tables and views will be displayed.
Parameter |
Description |
---|---|
db_name |
Database name, which consists of letters, digits, and underscores (_). The value cannot contain only digits or start with a digit or underscore (_). |
regex_expression |
Name of a database table. |
None
1 | SHOW TABLES; |
1 | SHOW TABLES IN testdb LIKE "test*"; |