REFRESH DATABASE METADATA FROM GOVERNANCE CENTER

Description

The REFRESH DATABASE METADATA syntax is used to refresh the metadata of the local logic database.

Syntax

Grammar Railroad diagram

  1. RefreshDatabaseMetadata ::=
  2. 'FORCE'? 'REFRESH' 'DATABASE' 'METADATA' databaseName?
  3. databaseName ::=
  4. identifier

Supplement

  • When databaseName is not specified, the default is to refresh all database metadata.

  • When using FORCE to refresh metadata, the latest metadata will be obtained locally and written to the governance center. If without FORCE, it will be pulled from the governance center.

Example

  • Refresh metadata for specified database
  1. REFRESH DATABASE METADATA sharding_db;
  • Refresh all database metadata
  1. REFRESH DATABASE METADATA;
  • Force refresh all database metadata
  1. FORCE REFRESH DATABASE METADATA;

Reserved word

FORCE, REFRESH, DATABASE, METADATA