REFRESH TABLE METADATA

Description

The REFRESH TABLE METADATA syntax is used to refresh table metadata.

Syntax

Grammar Railroad diagram

  1. RefreshTableMetadata ::=
  2. 'REFRESH' 'TABLE' 'METADATA' (tableName | tableName 'FROM' 'STORAGE' 'UNIT' storageUnitName ('SCHEMA' schemaName)?)?
  3. tableName ::=
  4. identifier
  5. storageUnitName ::=
  6. identifier
  7. schemaName ::=
  8. identifier

Supplement

  • When tableName and storageUnitName is not specified, the default is to refresh all table metadata.

  • refresh table metadata need to use DATABASE. If DATABASE is not used, No database selected will be prompted.

  • If there are no tables in the schema, the schema will be deleted.

Example

  • Refresh specified table’s metadata in specified schema of a specified storage unit
  1. REFRESH TABLE METADATA t_order FROM STORAGE UNIT ds_1 SCHEMA db_schema;
  • Refresh all tables’ metadata in specified schema of a specified storage unit
  1. REFRESH TABLE METADATA FROM STORAGE UNIT ds_1 SCHEMA db_schema;
  • Refresh metadata for specified table in specified storage unit
  1. REFRESH TABLE METADATA t_order FROM STORAGE UNIT ds_1;
  • Refresh metadata for specified table
  1. REFRESH TABLE METADATA t_order;
  • Refresh all table metadata
  1. REFRESH TABLE METADATA;

Reserved word

REFRESH, TABLE, METADATA, FROM, STORAGE, UNIT