SHOW TABLES¶
Description¶
The SHOW TABLES statement lists the names of all tables currently mounted in the MemoraDB catalog.
Syntax¶
(See the Syntax Notation Guide for notation rules).
Basic syntax¶
Full syntax¶
Parameters¶
None.
Example¶
Expected Output¶
When tables exist:
When no tables are registered:
How It Works¶
The executor queries the Catalog map and prints the name of each mounted table. When MemoraDB starts up, Catalog::loadTables() scans the data/ directory and mounts every valid table found on disk, so SHOW TABLES reflects both newly created tables and tables persisted from previous sessions.
Related Commands¶
CREATE TABLE— Create a new table.DESCRIBE TABLE— Inspect the schema of a listed table.DROP TABLE— Delete a table.