2020-07-14 21:02:41 +00:00
|
|
|
---
|
2022-08-28 14:53:34 +00:00
|
|
|
slug: /en/sql-reference/statements/alter/row-policy
|
2022-04-09 13:29:05 +00:00
|
|
|
sidebar_position: 47
|
|
|
|
sidebar_label: ROW POLICY
|
2020-07-14 21:02:41 +00:00
|
|
|
---
|
|
|
|
|
2022-06-02 10:55:18 +00:00
|
|
|
# ALTER ROW POLICY
|
2020-07-14 21:02:41 +00:00
|
|
|
|
|
|
|
Changes row policy.
|
|
|
|
|
|
|
|
Syntax:
|
|
|
|
|
|
|
|
``` sql
|
2021-07-29 15:20:55 +00:00
|
|
|
ALTER [ROW] POLICY [IF EXISTS] name1 [ON CLUSTER cluster_name1] ON [database1.]table1 [RENAME TO new_name1]
|
2021-01-23 13:14:01 +00:00
|
|
|
[, name2 [ON CLUSTER cluster_name2] ON [database2.]table2 [RENAME TO new_name2] ...]
|
2020-07-14 21:02:41 +00:00
|
|
|
[AS {PERMISSIVE | RESTRICTIVE}]
|
|
|
|
[FOR SELECT]
|
|
|
|
[USING {condition | NONE}][,...]
|
|
|
|
[TO {role [,...] | ALL | ALL EXCEPT role [,...]}]
|
|
|
|
```
|