forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com> Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
4.5 KiB
4.5 KiB
Viewing a Specified Database
Function
This syntax is used to view the information about a specified database, including the database name and database description.
Syntax
1 | DESCRIBE DATABASE [EXTENDED] db_name; |
Keywords
EXTENDED: Displays the database properties.
Parameters
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 (_). |
Precautions
If the database to be viewed does not exist, the system reports an error.
Example
- Create a database, for example, testdb, by referring to Example.
- Run the following statement to query information about the testdb database:
1
DESCRIBE DATABASE testdb;
Parent topic: Databases