Skip to content

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

SHOW TABLES;

Full syntax

SHOW TABLES;

Parameters

None.


Example

SHOW TABLES;

Expected Output

When tables exist:

documents
employees
students

When no tables are registered:

No tables found.


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.