You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/UserGuide/Master/Tree/Basic-Concept/Data-Model-and-Terminology.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,10 @@ The following are the constraints on the `nodeName`:
87
87
*[ 0-9 a-z A-Z _ ] (letters, numbers, underscore)
88
88
*['\u2E80'..'\u9FFF'] (Chinese characters)
89
89
* In particular, if the system is deployed on a Windows machine, the database layer name will be case-insensitive. For example, creating both `root.ln` and `root.LN` at the same time is not allowed.
90
-
* If you want to use special characters in `nodeName`, you can quote it with back quote, detailed information can be found from charpter Syntax-Conventions,click here: [Syntax-Conventions](https://iotdb.apache.org/UserGuide/Master/Syntax-Conventions/Literal-Values.html).
90
+
91
+
### Special characters (Reverse quotation marks)
92
+
93
+
If you need to use special characters in the path node name, you can use reverse quotation marks to reference the path node name. For specific usage, please refer to [Reverse Quotation Marks](../Reference/Syntax-Rule.md#reverse-quotation-marks).
-Template name should be quoted in cases described above :
223
+
-When the metadata template name encounters the above special situations, reverse quotation marks should be used for reference:
225
224
226
-
```sql
227
-
# create a template named 111, 111 is a real number.
228
-
create device template `111`
229
-
(temperature FLOAT encoding=RLE, status BOOLEAN encoding=PLAIN compression=SNAPPY)
230
-
```
225
+
```sql
226
+
# Create a metadata template named 111, where 111 is a real number and needs to be quoted in reverse quotation marks.
227
+
create device template `111`
228
+
(temperature FLOAT encoding=RLE, status BOOLEAN encoding=PLAIN compression=SNAPPY)
229
+
```
231
230
232
-
-User andRole name should be quoted in cases described above, blank space is not allow inUser andRole name whether quoted or not :
231
+
-When the username and role name encounter the above special situations, reverse quotation marks should be used for reference. Regardless of whether reverse quotation marks are used or not, spaces are not allowed in the username and role name. Please refer to the instructions in the permission management section for details.
233
232
234
-
```sql
235
-
# create user special`user.
236
-
CREATEUSER `special``user.`'write_pwd'
237
-
238
-
# create role 111
239
-
CREATE ROLE `111`
240
-
```
241
-
242
-
- Continuous query name should be quoted in cases described above :
243
-
244
-
```sql
245
-
# create continuous query test.cq
246
-
CREATE CONTINUOUS QUERY `test.cq`
247
-
BEGIN
248
-
SELECT max_value(temperature)
249
-
INTO temperature_max
250
-
FROM root.ln.*.*
251
-
GROUP BY time(10s)
252
-
END
253
-
```
254
-
255
-
- Pipe、PipeSink should be quoted in cases described above :
233
+
```sql
234
+
# Create user special ` user.
235
+
CREATEUSER `special``user.`'write_pwd'
236
+
237
+
# Create Character 111
238
+
CREATE ROLE `111`
239
+
```
240
+
241
+
- When encountering the above special situations in continuous query identification, reverse quotation marks should be used to reference:
242
+
243
+
```sql
244
+
# Create continuous query test.cq
245
+
CREATE CONTINUOUS QUERY `test.cq`
246
+
BEGIN
247
+
SELECT max_value(temperature)
248
+
INTO temperature_max
249
+
FROMroot.ln.*.*
250
+
GROUP BYtime(10s)
251
+
END
252
+
```
253
+
254
+
- When the names Pipe and PipeSink encounter the above special situations, reverse quotation marks should be used for reference:
255
+
256
+
```sql
257
+
# Create PipeSink test. * 1
258
+
CREATE PIPESINK `test.*1`AS IoTDB ('ip'='输入你的IP')
259
+
260
+
# Create Pipe Test. * 2
261
+
CREATE PIPE `test.*2` TO `test.*1`FROM
262
+
(select**from root WHEREtime>=yyyy-mm-dd HH:MM:SS) WITH 'SyncDelOp'='true'
263
+
```
256
264
257
-
```sql
258
-
# create PipeSink test.*1
259
-
CREATE PIPESINK `test.*1` AS IoTDB ('ip' = '输入你的IP')
260
-
261
-
# create Pipe test.*2
262
-
CREATE PIPE `test.*2` TO `test.*1` FROM
263
-
(select ** from root WHERE time>=yyyy-mm-dd HH:MM:SS) WITH 'SyncDelOp' = 'true'
264
-
```
265
+
- In the Select clause, an alias can be specified for the value in the result set, which can be defined as a string or identifier. Examples are as follows:
265
266
266
-
-`AS` function provided by IoTDB can assign an alias to time series selected in query. Alias can be constant(including string) or identifier.
267
+
```sql
268
+
select s1 as temperature, s2 as speed fromroot.ln.wf01.wt01;
269
+
# 表头如下所示
270
+
+-----------------------------+-----------+-----+
271
+
| Time|temperature|speed|
272
+
+-----------------------------+-----------+-----+
273
+
```
267
274
268
-
```sql
269
-
select s1 as temperature, s2 as speed from root.ln.wf01.wt01;
270
-
271
-
# Header of result dataset
272
-
+-----------------------------+-----------|-----+
273
-
| Time|temperature|speed|
274
-
+-----------------------------+-----------|-----+
275
-
```
275
+
- Used to represent key value pairs, the keys and values of key value pairs can be defined as constants (including strings) or identifiers. Please refer to the Key Value Pair section for details.
276
276
277
-
- The key/value of an attribute can be String Literal and identifier, more details can be found at **key-value pair** part.
278
-
279
-
- Nodes except database in the path are allowed to contain the "*" symbol, when using this symbol it is required to enclose the node in backquotes, e.g., root.db.`*`, but this usage is only recommended when the path cannot avoid containing the "*" symbol.
277
+
- Non database nodes in the path are allowed to contain the symbol `*`. When using it, the node needs to be enclosed in reverse quotes (as shown below), but this usage is only recommended when the path inevitably contains `*`.
Copy file name to clipboardExpand all lines: src/UserGuide/latest/Basic-Concept/Data-Model-and-Terminology.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,7 +87,11 @@ The following are the constraints on the `nodeName`:
87
87
*[ 0-9 a-z A-Z _ ] (letters, numbers, underscore)
88
88
*['\u2E80'..'\u9FFF'] (Chinese characters)
89
89
* In particular, if the system is deployed on a Windows machine, the database layer name will be case-insensitive. For example, creating both `root.ln` and `root.LN` at the same time is not allowed.
90
-
* If you want to use special characters in `nodeName`, you can quote it with back quote, detailed information can be found from charpter Syntax-Conventions,click here: [Syntax-Conventions](https://iotdb.apache.org/UserGuide/Master/Syntax-Conventions/Literal-Values.html).
90
+
91
+
### Special characters (Reverse quotation marks)
92
+
93
+
If you need to use special characters in the path node name, you can use reverse quotation marks to reference the path node name. For specific usage, please refer to [Reverse Quotation Marks](../Reference/Syntax-Rule.md#reverse-quotation-marks).
0 commit comments