SHOW Command Reference
Description
List existing objects of the specified type in Singdata Lakehouse.
Syntax
Parameters
| Parameter | Description | Required |
|---|---|---|
<object_type_plural> | The type of object to list (plural form), e.g., TABLES, SCHEMAS, etc. | Yes |
IN <scope> | Limits the scope level of the objects | No |
LIKE '<pattern>' | Matches object names using wildcard patterns (supports % and _) | No |
WHERE <expression> | Performs complex filtering based on object properties (mutually exclusive with LIKE) | No |
LIMIT <num> | Limits the number of returned results | No |
Scope Specification
| Object Type | Scope Format | Example |
|---|---|---|
| TABLE/VIEW/MATERIALIZED VIEW/SYNONYM/VOLUME/TABLE STREAM/PIPE | IN schema_name | SHOW TABLES IN sales |
| Jobs | IN VCLUSTER vc_name | SHOW JOBS IN VCLUSTER prod |
| Indexes/Columns | IN table_name | SHOW COLUMNS IN orders |
| SCHEMA/VCLUSTER/USERS/ROLES | IN workspace_name | SHOW SCHEMAS IN my_workspace |
| Partitions | IN not supported | SHOW PARTITIONS table_name |
| CONNECTION/SHARE/FUNCTION | Scope specification not supported | SHOW CONNECTIONS |
Result Filtering
-
LIKE '<pattern>': Matches object names using wildcard patterns -
WHERE <expression>: Performs complex filtering based on object properties (supports combined queries across all fields)Object types that support WHERE filtering:
TABLE,TABLE STREAM,CONNECTION,VCLUSTER,JOB,SHARE,SYNONYM,PIPE,SCHEMA
Special Syntax
Index and column objects support using FROM instead of IN TABLE:
Notes
LIKEandWHEREare mutually exclusive -- only one can be used at a time- Pattern matching is case-sensitive
- The
WHEREclause supports standard SQL expression syntax DROP SCHEMAwill cascade-delete all objects under that schema- CONNECTION and SHARE do not support scope specification
Syntax Reference
Users and Privileges
Schema and Catalog
Data Objects
- SHOW TABLES
- SHOW VIEWS
- SHOW MATERIALIZED VIEWS
- SHOW DYNAMIC TABLES
- SHOW EXTERNAL TABLES
- SHOW TABLE STREAMS
- SHOW COLUMNS
- SHOW PARTITIONS
