ALTER RESOURCE LABEL
Function
ALTER RESOURCE LABEL modifies resource labels.
Precautions
Only user poladmin, user sysadmin, or the initial user can perform this operation.
Syntax
1 2 |
ALTER RESOURCE LABEL label_name (ADD|REMOVE) label_item_list[, ...]*; |
- label_item_list
1
resource_type(resource_path[, ...]*)
- resource_type
TABLE | COLUMN | SCHEMA | VIEW | FUNCTION
Parameter Description
- label_name
Specifies the resource label name.
Value range: a string. It must comply with the naming convention.
- resource_type
Specifies the type of database resources to be labeled.
- resource_path
Specifies the path of database resources.
Examples
1 2 3 4 5 6 7 8 9 10 11 |
-- Create basic table table_for_label. openGauss=# CREATE TABLE table_for_label(col1 int, col2 text); -- Create resource label table_label. openGauss=# CREATE RESOURCE LABEL table_label ADD COLUMN(table_for_label.col1); -- Attach resource label table_label to col2. openGauss=# ALTER RESOURCE LABEL table_label ADD COLUMN(table_for_label.col2) -- Remove table_label from an item. openGauss=# ALTER RESOURCE LABEL table_label REMOVE COLUMN(table_for_label.col1); |
Helpful Links
5.1.13.14.61-CREATE RESOURCE LABEL and 5.1.13.14.102-DROP RESOURCE LABEL
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot