2022-03-04 08:39:12 +00:00
|
|
|
---
|
2022-08-26 19:07:59 +00:00
|
|
|
slug: /zh/sql-reference/statements/alter/row-policy
|
2022-04-10 23:08:18 +00:00
|
|
|
sidebar_position: 47
|
|
|
|
sidebar_label: 行策略
|
2022-03-04 08:39:12 +00:00
|
|
|
---
|
|
|
|
|
2022-03-04 08:41:07 +00:00
|
|
|
# 操作行策略 {#alter-row-policy-statement}
|
2022-03-04 08:39:12 +00:00
|
|
|
|
2022-03-04 08:41:07 +00:00
|
|
|
修改行策略.
|
2022-03-04 08:39:12 +00:00
|
|
|
|
2022-03-04 08:41:07 +00:00
|
|
|
语法:
|
2022-03-04 08:39:12 +00:00
|
|
|
|
|
|
|
``` sql
|
|
|
|
ALTER [ROW] POLICY [IF EXISTS] name1 [ON CLUSTER cluster_name1] ON [database1.]table1 [RENAME TO new_name1]
|
|
|
|
[, name2 [ON CLUSTER cluster_name2] ON [database2.]table2 [RENAME TO new_name2] ...]
|
|
|
|
[AS {PERMISSIVE | RESTRICTIVE}]
|
|
|
|
[FOR SELECT]
|
|
|
|
[USING {condition | NONE}][,...]
|
|
|
|
[TO {role [,...] | ALL | ALL EXCEPT role [,...]}]
|
|
|
|
```
|