云数据库 GAUSSDB-CREATE MASKING POLICY:语法格式

时间:2024-11-13 14:46:49

语法格式

1
CREATE MASKING POLICY policy_name masking_clause[, ...] [ policy_filter_clause ] [ENABLE | DISABLE];

  • masking_clause:
    1
    masking_function ON LABEL(label_name[, ...])
    

  • masking_function:

    maskall不是预置函数,不支持\df展示。

    预置时脱敏方式如下:
    { maskall | randommasking | creditcardmasking | basicemailmasking | fullemailmasking | shufflemasking | alldigitsmasking | regexpmasking }

support.huaweicloud.com/distributed-devg-v8-gaussdb/gaussdb-12-0551.html