change
This commit is contained in:
parent
7862828683
commit
96bb823464
|
@ -32,7 +32,7 @@ create table st (ts timestamp, a int, b int NOSMA, c double) tags (tg1 binary(10
|
||||||
In addition to the default block-wise SMA, users can create their own SMAs ondemand. Below is an example to create a SMA.
|
In addition to the default block-wise SMA, users can create their own SMAs ondemand. Below is an example to create a SMA.
|
||||||
```SQL
|
```SQL
|
||||||
# create a SMA every 10 minutes with SMA of sum, max and min
|
# create a SMA every 10 minutes with SMA of sum, max and min
|
||||||
create sma_indx sma_5min on st (sum(*), max(*), min(*), twa(*)) interval(10m);
|
create sma_indx sma_10min on st (sum(*), max(*), min(*), twa(*)) interval(10m);
|
||||||
```
|
```
|
||||||
Users can also drop a time-range-wise SMA like below:
|
Users can also drop a time-range-wise SMA like below:
|
||||||
```SQL
|
```SQL
|
||||||
|
|
Loading…
Reference in New Issue