Help Center/ AI DataLake/ Spark reference/ Database-Related/ Describe Specific Database
Updated on 2026-11-06 GMT+08:00

Describe Specific Database

Function

Returns metadata information of a specified database, including the database name, database description, storage path on the file system, etc. If the EXTENDED option is specified, database property information is also returned.

Syntax

1
DESCRIBE DATABASE [EXTENDED] db_name;

Keywords

EXTENDED: In addition to displaying the above information, also displays database properties (DBPROPERTIES).

Parameters

Table 1 Parameter description

Parameter

Description

db_name

Database name. Only letters, digits, and underscores (_) are allowed. It cannot be purely numeric and cannot start with a digit or underscore.

Precautions

  • If the database to be described does not exist, the system reports an error.
  • The EXTENDED option additionally displays property information defined in DBPROPERTIES.
  • DESC is equivalent to DESCRIBE and can be used interchangeably.
  • DATABASE is equivalent to SCHEMA and can be used interchangeably.

Example 1: Describe Basic Database Information

Describe the name, description, and storage path of the employees database.

DESCRIBE DATABASE employees;

Example result:

database_description_item

database_description_value

Database Name

employees

Description

For software companies

Location

obs://my-bucket/employees/

Example 2: Describe Detailed Database Information (Including Properties)

Use the EXTENDED option to view database property information.

DESCRIBE DATABASE EXTENDED employees;

Example result:

database_description_item

database_description_value

Database Name

employees

Description

For software companies

Location

obs://my-bucket/employees/

Properties

((Create-by,kevin), (Create-date,09/01/2019))

Example 3: Use DESC Abbreviation

DESC is the abbreviation form of DESCRIBE.

DESC DATABASE employees;

Example 4: Describe a Database Created Using the SCHEMA Keyword

DATABASE is equivalent to SCHEMA.

DESC DATABASE deployment;

Example result:

database_description_item

database_description_value

Database Name

deployment

Description

Deployment environment

Location

obs://my-bucket/deployment/