DROP RESOURCE
语法用于从当前逻辑库中移除资源。
DropResource ::=
'DROP' 'RESOURCE' ( 'IF' 'EXISTS' )? resourceName ( ',' resourceName )* ( 'IGNORE' 'SINGLE' 'TABLES' )?
resourceName ::=
identifier
DROP RESOURCE
只会移除 Proxy 中的资源,不会删除与资源对应的真实数据源;Resources are still in used
;SINGLE TABLE RULE
,且用户确认可以忽略该限制时,可添加 IGNORE SINGLE TABLES
关键字移除资源。DROP RESOURCE ds_0;
DROP RESOURCE ds_1, ds_2;
DROP RESOURCE ds_3 IGNORE SINGLE TABLES;
DROP RESOURCE IF EXISTS ds_4;
DROP
、RESOURCE
、IF
、EXISTS
、IGNORE
、SINGLE
、TABLES