The UNREGISTER STORAGE UNIT syntax is used to unregister storage units from the current database.
UnregisterStorageUnit ::=
'UNREGISTER' 'STORAGE' 'UNIT' ifExists? storageUnitName (',' storageUnitName)* ignoreTables?
ifExists ::=
'IF' 'EXISTS'
storageUnitName ::=
identifier
ignoreTables ::=
'IGNORE' 'SINGLE' 'TABLES' | 'IGNORE' 'BROADCAST' 'TABLES' |
'IGNORE' ('SINGLE' ',' 'BROADCAST' | 'BROADCAST' ',' 'SINGLE') 'TABLES'
UNREGISTER STORAGE UNIT only unregisters storage units in Proxy. The real data sources corresponding to the storage units are not unregistered;Storage unit '%s' still used by '%s'. will be prompted when unregistering storage units used by rules;IGNORE SINGLE TABLES, IGNORE BROADCAST TABLES, IGNORE SINGLE, BROADCAST TABLES, or IGNORE BROADCAST, SINGLE TABLES can be added to unregister the storage units;ifExists clause is used to avoid Storage unit not exists error.UNREGISTER STORAGE UNIT ds_0;
UNREGISTER STORAGE UNIT ds_0, ds_1;
UNREGISTER STORAGE UNIT ds_0 IGNORE SINGLE TABLES;
UNREGISTER STORAGE UNIT ds_0 IGNORE BROADCAST TABLES;
UNREGISTER STORAGE UNIT ds_0 IGNORE SINGLE, BROADCAST TABLES;
UNREGISTER STORAGE UNIT ds_0 IGNORE BROADCAST, SINGLE TABLES;
ifExists clauseUNREGISTER STORAGE UNIT IF EXISTS ds_0;
UNREGISTER, STORAGE, UNIT, IF, EXISTS, IGNORE, SINGLE, BROADCAST, TABLES
