SHOW DEFAULT SINGLE TABLE STORAGE UNIT
SHOW DEFAULT SINGLE TABLE STORAGE UNIT
Description
The SHOW DEFAULT SINGLE TABLE STORAGE UNIT syntax is used to query the default single table storage unit for the specified or current database.
Syntax
ShowDefaultSingleTableStorageUnit::=
'SHOW' 'DEFAULT' 'SINGLE' 'TABLE' 'STORAGE' 'UNIT' ('FROM' databaseName)?
databaseName ::=
identifierSupplement
- When
databaseNameis not specified, the default is the currently usedDATABASE. IfDATABASEis not used,No database selectedwill be prompted.
Return Value Description
| Column | Description |
|---|---|
| storage_unit_name | Storage unit name |
Example
- Query the default single table storage unit for current database.
SHOW DEFAULT SINGLE TABLE STORAGE UNITsql> SHOW DEFAULT SINGLE TABLE STORAGE UNIT;
+-------------------+
| storage_unit_name |
+-------------------+
| ds_0 |
+-------------------+
1 row in set (0.01 sec)Reserved word
SHOW, DEFAULT, SINGLE, TABLE, STORAGE, UNIT