HomeMogDBMogDB StackUqbar
v2.0

Documentation:v2.0

Supported Versions:

Other Versions:

DROP RESOURCE LABEL

Function

DROP RESOURCE LABEL deletes a resource label.

Precautions

Only user poladmin, user sysadmin, or the initial user can perform this operation.

Syntax

DropResourceLabel ::= DROP RESOURCE LABEL [IF EXISTS] policy_name[, ...];

Parameter Description

label_name

Specifies the resource label name.

Value range: a string. It must comply with the naming convention.

Examples

-- Delete a resource label.
mogdb=# DROP RESOURCE LABEL IF EXISTS res_label1;

-- Delete a group resource label.
mogdb=# DROP RESOURCE LABEL IF EXISTS res_label1, res_label2, res_label3;
Copyright © 2011-2024 www.enmotech.com All rights reserved.