The DROP RESOURCE
syntax is used to drop resources from the current database
DropResource ::=
'DROP' 'RESOURCE' ( 'IF' 'EXISTS' )? resourceName ( ',' resourceName )* ( 'IGNORE' 'SINGLE' 'TABLES' )?
resourceName ::=
identifier
DROP RESOURCE
will only drop resources in Proxy, the real data source corresponding to the resource will not be
dropped;Resources are still in used.
will be prompted when removing
resources used by rules;SINGLE TABLE RULE
, and when the user confirms that this restriction
can be ignored, the IGNORE SINGLE TABLES
keyword can be added to remove the resource.DROP RESOURCE ds_0;
DROP RESOURCE ds_1, ds_2;
DROP RESOURCE ds_1 IGNORE SINGLE TABLES;
DROP RESOURCE IF EXISTS ds_2;
DROP
, RESOURCE
, IF
, EXISTS
, IGNORE
, SINGLE
, TABLES