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 2022/08/08 05:45:32 UTC
[GitHub] [shardingsphere] Mike0601 commented on a diff in pull request #19960: Add syntax rule for DistSQL
Mike0601 commented on code in PR #19960:
URL: https://github.com/apache/shardingsphere/pull/19960#discussion_r939842640
##########
docs/document/content/user-manual/shardingsphere-proxy/distsql/_index.en.md:
##########
@@ -4,4 +4,32 @@ weight = 3
chapter = true
+++
-This chapter will introduce the detailed syntax of [DistSQL](/en/concepts/distsql/).
+This chapter will introduce the detailed syntax of [DistSQL](/en/overview/distsql/).
+
+## Syntax Rule
+
+In DistSQL statement, except for keywords, the input format of other elements shall conform to the following rules.
+
+### Identifier
+
+1. The identifier represents an object in the SQL statement, including:
+- database name
+- table name
+- column name
+- index name
+- resource name
+- rule name
+- algorithm name
+
+1. The allowed characters in the identifier are: [`A-Z, A-Z, 0-9, _`] (letters, numbers, underscores) and should start with a letter.
+
+1. When keywords or special characters appear in the identifier, use the backticks (`).
+
+### Literal
+
+Types of literals include:
+
+- string: enclosed in single quotes (') or double quotes (")
+- int: it is generally a positive integer, such as 0-9;
+Note: some DistSQL syntax allows negative values. In this case, a negative sign (-) can be added before the number, such as - 1.
Review Comment:
have removed space.
--
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