mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
20 lines
480 B
Markdown
20 lines
480 B
Markdown
---
|
|
toc_priority: 47
|
|
toc_title: 行策略
|
|
---
|
|
|
|
# 操作行策略 {#alter-row-policy-statement}
|
|
|
|
修改行策略.
|
|
|
|
语法:
|
|
|
|
``` 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 [,...]}]
|
|
```
|