You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/07/15 07:54:43 UTC

[shardingsphere] branch master updated: fix(docs): fix #192128 (#19217)

This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new c839114de7d fix(docs): fix #192128 (#19217)
c839114de7d is described below

commit c839114de7d7d474475fd5001b30ec61d1bcc39c
Author: Jieker <ji...@163.com>
AuthorDate: Fri Jul 15 15:54:38 2022 +0800

    fix(docs): fix #192128 (#19217)
---
 .../syntax/rql/rule-query/single-table.cn.md       | 23 +++++++++++++++++-----
 .../syntax/rql/rule-query/single-table.en.md       | 23 +++++++++++++++++-----
 2 files changed, 36 insertions(+), 10 deletions(-)

diff --git a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/single-table.cn.md b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/single-table.cn.md
index 8deec84eef3..fec2c6ae444 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/single-table.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/single-table.cn.md
@@ -6,12 +6,12 @@ weight = 2
 ## 语法说明
 
 ```sql
-SHOW SINGLE TABLE (tableRule | RULES) [FROM databaseName]
+SHOW SINGLE TABLE (table | RULES) [FROM databaseName]
 
 SHOW SINGLE TABLES 
 
-tableRule:
-    RULE tableName
+table:
+    TABLE tableName
 ```
 
 ## 返回值说明
@@ -32,7 +32,7 @@ tableRule:
 
 ## 示例
 
-*single table rules*
+*SHOW SINGLE TABLES RULES*
 
 ```sql
 sql> SHOW SINGLE TABLES RULES;
@@ -44,7 +44,20 @@ sql> SHOW SINGLE TABLES RULES;
 1 row in set (0.01 sec)
 ```
 
-*single tables*
+*SHOW SINGLE TABLE tableName*
+
+```sql
+sql> SHOW SINGLE TABLE t_single_0;
++----------------+---------------+
+| table_name     | resource_name |
++----------------+---------------+
+| t_single_0     | ds_0          |
++----------------+---------------+
+1 row in set (0.01 sec)
+```
+
+*SHOW SINGLE TABLES*
+
 ```sql
 mysql> SHOW SINGLE TABLES;
 +--------------+---------------+
diff --git a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/single-table.en.md b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/single-table.en.md
index d75dbf01209..72a1d75859d 100644
--- a/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/single-table.en.md
+++ b/docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rql/rule-query/single-table.en.md
@@ -6,12 +6,12 @@ weight = 2
 ## Syntax
 
 ```sql
-SHOW SINGLE TABLE (tableRule | RULES) [FROM databaseName]
+SHOW SINGLE TABLE (table | RULES) [FROM databaseName]
 
 SHOW SINGLE TABLES 
 
-tableRule:
-    RULE tableName
+table:
+    TABLE tableName
 ```
 
 ## Return Value Description
@@ -32,7 +32,7 @@ tableRule:
 
 ## Example
 
-*single table rules*
+*SHOW SINGLE TABLES RULES*
 
 ```sql
 sql>  SHOW SINGLE TABLES RULES;
@@ -44,7 +44,20 @@ sql>  SHOW SINGLE TABLES RULES;
 1 row in set (0.01 sec)
 ```
 
-*single tables*
+*SHOW SINGLE TABLE tableName*
+
+```sql
+sql> SHOW SINGLE TABLE t_single_0;
++----------------+---------------+
+| table_name     | resource_name |
++----------------+---------------+
+| t_single_0     | ds_0          |
++----------------+---------------+
+1 row in set (0.01 sec)
+```
+
+*SHOW SINGLE TABLES*
+
 ```sql
 mysql> SHOW SINGLE TABLES;
 +--------------+---------------+