You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/11/15 14:20:13 UTC

[GitHub] [shardingsphere] RaigorJiang commented on a change in pull request #13623: [DistSQL] Support show single table rule resource statement

RaigorJiang commented on a change in pull request #13623:
URL: https://github.com/apache/shardingsphere/pull/13623#discussion_r749368638



##########
File path: docs/document/content/user-manual/shardingsphere-proxy/distsql/syntax/rdl/rdl-single-table.cn.md
##########
@@ -0,0 +1,31 @@
++++
+title = "单表"
+weight = 7
++++
+
+## 定义
+
+```sql
+CREATE DEFAULT SINGLE TABLE RULE singleTableRuleDefinition
+
+ALTER DEFAULT SINGLE TABLE RULE singleTableRuleDefinition
+
+DROP DEFAULT SINGLE TABLE RULE
+
+singleTableRuleDefinition:
+    RESOURCE = resourceName
+```
+- `RESOURCES` 需使用 RDL 管理的数据源资源
+
+
+## 示例
+
+### Single Table Rule
+
+```sql
+CREATE SINGLE TABLE RULE RESOURCE = ds_0
+
+ALTER SINGLE TABLE RULE RESOURCE = ds_1
+
+DROP SINGLE TABLE RULE RESOURCE

Review comment:
       Wrong examples.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org