1
- Usage info:
2
- DDL & DQL :
1
+ usage info:
2
+ ddl & dql :
3
3
01. `set storage group to root.ln`
4
4
02. `show storage group` | `show storage group root.*`
5
- 03. `DELETE STORAGE GROUP root.ln` | `DELETE STORAGE GROUP root.*`
6
- 04. `create timeseries root.ln.wf01.wt01.status with datatype=BOOLEAN ,encoding=PLAIN `
7
- 05. `CREATE ALIGNED TIMESERIES root.ln.wf01.GPS (latitude FLOAT encoding=PLAIN compressor=SNAPPY , longitude FLOAT encoding=PLAIN compressor=SNAPPY )`
5
+ 03. `delete storage group root.ln` | `delete storage group root.*`
6
+ 04. `create timeseries root.ln.wf01.wt01.status with datatype=boolean ,encoding=plain `
7
+ 05. `create aligned timeseries root.ln.wf01.gps (latitude float encoding=plain compressor=snappy , longitude float encoding=plain compressor=snappy )`
8
8
06. `delete timeseries root.ln.wf01.wt01.status` | `delete timeseries root.ln.wf01.wt01.*`
9
9
07. `show timeseries root.*`
10
- 08. `COUNT TIMESERIES root.*`
11
- 09. `SHOW CHILD PATHS pathPattern `
12
- 10. `SHOW CHILD NODES pathPattern `
13
- 11. `COUNT NODES root.** LEVEL =2`
10
+ 08. `count timeseries root.*`
11
+ 09. `show child paths pathpattern `
12
+ 10. `show child nodes pathpattern `
13
+ 11. `count nodes root.** level =2`
14
14
12. `show devices` | `show devices root.ln.*`
15
- 13. `create schema template temp1(GPS (lat FLOAT encoding=Gorilla , lon FLOAT encoding=Gorilla ) compression=SNAPPY , status BOOLEAN encoding=PLAIN compression=SNAPPY )`
15
+ 13. `create schema template temp1(gps (lat float encoding=gorilla , lon float encoding=gorilla ) compression=snappy , status boolean encoding=plain compression=snappy )`
16
16
14. `set schema template temp1 to root.ln.wf01`
17
17
15. `unset schema template temp1 from root.beijing`
18
18
16. `set ttl to root.ln 3600000`
19
19
17. `unset ttl to root.ln`
20
- 18. `SHOW ALL TTL ` | `SHOW TTL ON StorageGroupNames `
21
- DML :
20
+ 18. `show all ttl ` | `show ttl on storagegroupnames `
21
+ dml :
22
22
01. `insert into root.ln.wf02.wt02(timestamp,status) values(1,true)`
23
- 02. `select temperature from root.ln.wf01.wt01 where time < 2017-11-01T00 :08:00.000`
23
+ 02. `select temperature from root.ln.wf01.wt01 where time < 2017-11-01t00 :08:00.000`
24
24
03. `select s1, - s1, s2, + s2, s1 + s2, s1 - s2, s1 * s2, s1 / s2, s1 % s2 from root.sg.d1`
25
25
04. `select count(status) from root.ln.wf01.wt01`
26
- 05. `select <path> from <prefixPath > where time = <T > fill(<data_type>[previous, <before_range>], …)`
27
- 06. `select last <Path > [COMMA <Path >]* from < PrefixPath > [COMMA < PrefixPath >]* <WhereClause >`
26
+ 05. `select <path> from <prefixpath > where time = <t > fill(<data_type>[previous, <before_range>], …)`
27
+ 06. `select last <path > [comma <path >]* from < prefixpath > [comma < prefixpath >]* <whereclause >`
28
28
07. `select * from root.sg.device where value like '%cc%'`
29
29
08. `select s1 as temperature, s2 as speed from root.ln.wf01.wt01`
30
30
09. `select status, temperature from root.ln.wf01.wt01 limit 10`
31
- 10. `select * from root.ln.* where time <= 2017-11-01T00 :01:00 WITHOUT NULL ANY `
32
- 11. `select * from root.ln.* where time <= 2017-11-01T00 :01:00 align by device`
33
- 12. `delete from root.ln.wf02.wt02.status where time<=2017-11-01T16 :26:00`
34
- 13. `delete from root.ln.wf02.wt02 where time <= 2017-11-01T16 :26:00`
35
- 14. `DELETE PARTITION root.ln 0,1,2`
36
- Other :
37
- 01. `FLUSH ` | `FLUSH root.ln`
38
- 02. `MERGE ` | `FULL MERGE `
39
- 03. `CLEAR CACHE `
40
- 04. `SET SYSTEM TO READONLY `
41
- 05. `CREATE SNAPSHOT FOR SCHEMA `
42
- 06. `KILL QUERY <queryId >`
43
- Useful links:
44
- 01. What is IoTDB : https://iotdb.apache.org/UserGuide/Master/IoTDB-Introduction/What -is-IoTDB .html
45
- 02. SQL guide: https://iotdb.apache.org/UserGuide/Master/IoTDB-SQL-Language/DDL-Data-Definition-Language .html
46
- 03. Data concept: https://iotdb.apache.org/UserGuide/Master/Data-Concept/Data-Model -and-Terminology .html
47
- 04. Advanced features: https://iotdb.apache.org/UserGuide/Master/Advanced-Features/UDF-User-Defined-Function .html
48
- 04. About iotdb-rs: https://github.com/francis-du/iotdb-rs
49
- 05. About iotdb-cli: https://github.com/francis-du/iotdb-cli
31
+ 10. `select * from root.ln.* where time <= 2017-11-01t00 :01:00 without null any `
32
+ 11. `select * from root.ln.* where time <= 2017-11-01t00 :01:00 align by device`
33
+ 12. `delete from root.ln.wf02.wt02.status where time<=2017-11-01t16 :26:00`
34
+ 13. `delete from root.ln.wf02.wt02 where time <= 2017-11-01t16 :26:00`
35
+ 14. `delete partition root.ln 0,1,2`
36
+ other :
37
+ 01. `flush ` | `flush root.ln`
38
+ 02. `merge ` | `full merge `
39
+ 03. `clear cache `
40
+ 04. `set system to readonly `
41
+ 05. `create snapshot for schema `
42
+ 06. `kill query <queryid >`
43
+ useful links:
44
+ 01. what is iotdb : https://iotdb.apache.org/userguide/master/iotdb-introduction/what -is-iotdb .html
45
+ 02. sql guide: https://iotdb.apache.org/userguide/master/iotdb-sql-language/ddl-data-definition-language .html
46
+ 03. data concept: https://iotdb.apache.org/userguide/master/data-concept/data-model -and-terminology .html
47
+ 04. advanced features: https://iotdb.apache.org/userguide/master/advanced-features/udf-user-defined-function .html
48
+ 04. about iotdb-rs: https://github.com/francis-du/iotdb-rs
49
+ 05. about iotdb-cli: https://github.com/francis-du/iotdb-cli
0 commit comments