2020-08-25 15:38:36 +00:00
|
|
|
---
|
|
|
|
toc_priority: 47
|
|
|
|
toc_title: ROW POLICY
|
|
|
|
---
|
|
|
|
|
|
|
|
# ALTER ROW POLICY {#alter-row-policy-statement}
|
|
|
|
|
|
|
|
Изменяет политику доступа к строкам.
|
|
|
|
|
2021-01-26 22:40:14 +00:00
|
|
|
Синтаксис:
|
2020-08-25 15:38:36 +00:00
|
|
|
|
|
|
|
``` sql
|
2021-01-26 22:40:14 +00:00
|
|
|
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] ...]
|
2020-08-25 15:38:36 +00:00
|
|
|
[AS {PERMISSIVE | RESTRICTIVE}]
|
|
|
|
[FOR SELECT]
|
|
|
|
[USING {condition | NONE}][,...]
|
|
|
|
[TO {role [,...] | ALL | ALL EXCEPT role [,...]}]
|
|
|
|
```
|
|
|
|
|