云数据库 GaussDB-ALTER RESOURCE LABEL:示例

时间:2023-11-01 16:22:50

示例

 1 2 3 4 5 6 7 8 91011
--创建基本表table_for_label。openGauss=# CREATE TABLE table_for_label(col1 int, col2 text);--创建资源标签table_label。openGauss=# CREATE RESOURCE LABEL table_label ADD COLUMN(table_for_label.col1);--将col2添加至资源标签table_label中openGauss=# ALTER RESOURCE LABEL table_label ADD COLUMN(table_for_label.col2)--将资源标签table_label中的一项移除openGauss=# ALTER RESOURCE LABEL table_label REMOVE COLUMN(table_for_label.col1);
support.huaweicloud.com/distributed-devg-v2-opengauss/gaussdb-v5r2c10-0534.html