This chapter describes the syntax of DistSQL in detail, and introduces use of DistSQL with practical examples.
In DistSQL statement, except for keywords, the input format of other elements shall conform to the following rules.
The allowed characters in the identifier are: [A-Z, A-Z, 0-9, _
] (letters, numbers, underscores) and should start with a letter.
When keywords or special characters appear in the identifier, use the backticks (`).
Types of literals include:
Note: some DistSQL syntax allows negative values. In this case, a negative sign (-) can be added before the number, such as -1.
The ""
must be used to mark the algorithm type name when specifying a user-defined algorithm type name, for example, NAME="AlgorithmTypeName"
The ""
is not necessary when specifying a ShardingSphere Built-in algorithm type name, for example, NAME=HASH_MOD