MIGRATE TABLE INTO

Description

MIGRATE TABLE INTO syntax is used to migration table from source to target

Syntax

Grammar Railroad diagram

  1. MigrateTableInto ::=
  2. 'MIGRATE' 'TABLE' migrationSource '.' tableName 'INTO' (databaseName '.')? tableName
  3. migrationSource ::=
  4. identifier
  5. databaseName ::=
  6. identifier
  7. tableName ::=
  8. identifier

Supplement

  • When databaseName is not specified, the default is the currently used DATABASE. If DATABASE is not used, No database selected will be prompted.

Example

  • Migrate table from source to current database
  1. MIGRATE TABLE ds_0.t_order INTO t_order;
  • Migrate table from source to specified database
  1. UNREGISTER MIGRATION SOURCE STORAGE UNIT ds_1, ds_2;

Reserved word

MIGRATE, TABLE, INTO