ALTER SQL_BLOCK_RULE
Descriptionβ
This statement is used to modify an SQL block rule.
Syntaxβ
ALTER SQL_BLOCK_RULE <rule_name>
PROPERTIES (
-- property
<property>
-- Additional properties
[ , ... ]
)
Required Parametersβ
1. <rule_name>
The name of the rule.
2. <property>
See the introduction of CREATE SQL_BLOCK_RULE for details.
Access Control Requirementsβ
The user executing this SQL command must have at least the following permissions:
Privilege | Object | Notes |
---|---|---|
ADMIN_PRIV | Global |
Exampleβ
- Modify the SQL and enable the rule
ALTER SQL_BLOCK_RULE test_rule PROPERTIES("sql"="select \\* from test_table","enable"="true")