1.4 KiB
1.4 KiB
| title | description |
|---|---|
| Escape Characters | This document describes the usage of escape characters in TDengine. |
Escape Characters
| Escape Character | Actual Meaning |
|---|---|
\' |
Single quote ' |
\" |
Double quote " |
\n |
Line Break |
\r |
Carriage Return |
\t |
tab |
\\ |
Back Slash \ |
\% |
% see below for details |
\_ |
_ see below for details |
Restrictions
- If there are escape characters in identifiers (database name, table name, column name, alias Name)
- Identifier without ``: Error will be returned because identifier must be constituted of digits, ASCII characters or underscore and can't be started with digits
- Identifier quoted with ``: Original content is kept, no escaping
- If there are escape characters in values
- The escape characters will be escaped as the above table. If the escape character doesn't match any supported one, the escape character
\will be ignored(\xremaining). %and_are used as wildcards inlike.\%and\_should be used to represent literal%and_inlike. If\%and\_are used out oflikecontext, the evaluation result is\%and\_, instead of%and_.
- The escape characters will be escaped as the above table. If the escape character doesn't match any supported one, the escape character