doc-exports/docs/dli/sqlreference/dli_08_0073.html
Su, Xiaomeng 76a5b1ee83 dli_sqlreference_20240227
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>
2024-03-27 22:02:33 +00:00

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

Table 1 Parameter

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

  1. Create a database, for example, testdb, by referring to Example.
  2. Run the following statement to query information about the testdb database:
    1
    DESCRIBE DATABASE testdb;