复古 护眼 海天 深邃 暗黑 默认

SHOW SQL_FEDERATION RULE

描述

SHOW SQL_FEDERATION RULE 语法用于查询联邦查询配置。

语法

ShowSQLFederationRule ::=
  'SHOW' 'SQL_FEDERATION' 'RULE'

返回值说明

说明
sql_federation_enabled 是否开启联邦查询
all_query_use_sql_federation 是否全部查询 SQL 使用联邦查询
execution_plan_cache 执行计划缓存

示例

  • 查询联邦查询配置
SHOW SQL_FEDERATION RULE;
mysql> show sql_federation rule;
+------------------------+------------------------------+-------------------------------------------+
| sql_federation_enabled | all_query_use_sql_federation | execution_plan_cache                      |
+------------------------+------------------------------+-------------------------------------------+
| true                   | false                        | initialCapacity: 2000, maximumSize: 65535 |
+------------------------+------------------------------+-------------------------------------------+
1 row in set (0.31 sec)

保留字

SHOWSQL_FEDERATIONRULE

相关链接