SelectDB Cloud
SQL 手册
SQL 语句
DDL
Drop
DROP-POLICY

Name

DROP POLICY

Description

drop policy for row or storage

ROW POLICY

Grammar:

  1. Drop row policy
DROP ROW POLICY test_row_policy_1 on table1 [FOR user| ROLE role];
  1. Drop storage policy
DROP STORAGE POLICY policy_name1

Example

  1. Drop the row policy for table1 named test_row_policy_1

    DROP ROW POLICY test_row_policy_1 on table1
  2. Drop the row policy for table1 using by user test

    DROP ROW POLICY test_row_policy_1 on table1 for test
  3. Drop the row policy for table1 using by role1

    DROP ROW POLICY test_row_policy_1 on table1 for role role1
  4. Drop the storage policy named policy_name1

DROP STORAGE POLICY policy_name1

Keywords

DROP, POLICY

Best Practice

© 2023 北京飞轮数据科技有限公司 京ICP备2022004029号 | Apache、Apache Doris 以及相关开源项目名称均为 Apache 基金会商标