UNREGISTER STORAGE UNIT
语法用于从当前逻辑库中移除存储单元。
UnregisterStorageUnit ::=
'UNREGISTER' 'STORAGE' 'UNIT' ifExists? storageUnitName (',' storageUnitName)* ('IGNORE' 'SINGLE' 'TABLES')?
ifExists ::=
'IF' 'EXISTS'
storageUnitName ::=
identifier
UNREGISTER STORAGE UNIT
只会移除 Proxy 中的存储单元,不会删除与存储单元对应的真实数据源;Storage unit are still in used
;SINGLE RULE
,且用户确认可以忽略该限制时,可添加 IGNORE SINGLE TABLES
关键字移除存储单元;ifExists
子句用于避免 Storage unit not exists
错误。UNREGISTER STORAGE UNIT ds_0;
UNREGISTER STORAGE UNIT ds_0, ds_1;
UNREGISTER STORAGE UNIT ds_0 IGNORE SINGLE TABLES;
ifExists
子句移除存储单元UNREGISTER STORAGE UNIT IF EXISTS ds_0;
DROP
、STORAGE
、UNIT
、IF
、EXISTS
、IGNORE
、SINGLE
、TABLES