数据仓库服务 GAUSSDB(DWS)-CREATE BLOCK RULE:示例

时间:2024-09-24 15:54:40

示例

创建名称为query_block的查询过滤规则:

1
2
3
4
5
CREATE BLOCK RULE query_block TO user1@'192.168.x.x' FOR SELECT FILTER BY SQL('select * from table_name')WITH(application_name='gsql',query_band='test1',table_num='2',partition_num='3',estimate_row='1000');

CREATE BLOCK RULE query_block FILTER BY TEMPLATE(unique_sql_id='1634655172');

CREATE BLOCK RULE query_block FILTER BY TEMPLATE(sql_hash='sql_c3d119fe636b9ef439b1f96c561c74ff');
support.huaweicloud.com/sqlreference-910-dws/dws_06_0292.html