RestrictedViewAccess 策略RestrictedViewAccess policy

RestrictedViewAccess 策略的信息可参见此处The RestrictedViewAccess policy is documented here.

用于在数据库中的表上启用或禁用策略的控制命令如下所示:Control commands for enabling or disabling the policy on table(s) in the database are the following:

启用/禁用策略:To enable/disable the policy:

.alter table TableName policy restricted_view_access true|false

启用/禁用多个表的策略:To enable/disable the policy of multiple tables:

.alter tables (TableName1, ..., TableNameN) policy restricted_view_access true|false

查看策略:To view the policy:

.show table TableName policy restricted_view_access

.show table * policy restricted_view_access

删除策略(与禁用行为等效):To delete the policy (equivalent to disabling):

.delete table TableName policy restricted_view_access