Purpose
This statement is used to drop a sensitive data protection rule.
Privilege requirements
To execute the DROP SENSITIVE RULE statement, the current user must have the CREATE SENSITIVE RULE privilege. For more information about the privileges of OceanBase Database, see Privilege classification in Oracle-compatible mode.
Syntax
DROP SENSITIVE RULE <rule_name>;
Parameters
The following table describes the parameters.
| Parameter | Data type | Default value | Description | |--|--|--|--| | rule_name | VARCHAR | | The name of the sensitive data protection rule, which must be unique within a tenant. |
The following table describes the parameters.
- The rule is immediately dropped after it is deleted.
Limitations:
- You can drop only one rule at a time.
Examples
Here is an example:
-- Drop the sensitive data protection rule named r1.
DROP SENSITIVE RULE r1;