docs: update 06-stream.md to correct sample sql statement

the existing sql statement failed due to invalid syntax on "select _wstart as start". copying the statement from the zh document instead
This commit is contained in:
danielclow 2023-08-09 23:28:54 +08:00 committed by GitHub
parent 458b3ce137
commit b61216d1a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ CREATE TABLE d1004 USING meters TAGS ("California.LosAngeles", 3);
### Create a Stream
```sql
create stream current_stream into current_stream_output_stb as select _wstart as start, _wend as end, max(current) as max_current from meters where voltage <= 220 interval (5s);
create stream current_stream trigger at_once into current_stream_output_stb as select _wstart as wstart, _wend as wend, max(current) as max_current from meters where voltage <= 220 interval (5s);
```
### Write Data