From 3b055e820c9f7508c396c25b401a1989ff19d5fb Mon Sep 17 00:00:00 2001 From: liuyao <38781207+54liuyao@users.noreply.github.com> Date: Fri, 18 Aug 2023 11:29:48 +0800 Subject: [PATCH] Update 14-stream.md --- docs/en/12-taos-sql/14-stream.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/en/12-taos-sql/14-stream.md b/docs/en/12-taos-sql/14-stream.md index 329e98dbe3..889039b056 100644 --- a/docs/en/12-taos-sql/14-stream.md +++ b/docs/en/12-taos-sql/14-stream.md @@ -168,3 +168,12 @@ All [scalar functions](../function/#scalar-functions) are available in stream pr - [unique](../function/#unique) - [mode](../function/#mode) +## Pause\Resume stream +1.pause stream +PAUSE STREAM [IF EXISTS] stream_name; +If "IF EXISTS" is not specified and the stream does not exist, an error will be reported; If "IF EXISTS" is specified and the stream does not exist, success is returned; If the stream exists, paused all stream tasks. + +2.resume stream +RESUME STREAM [IF EXISTS] [IGNORE UNTREATED] stream_name; +If "IF EXISTS" is not specified and the stream does not exist, an error will be reported. If "IF EXISTS" is specified and the stream does not exist, success is returned; If the stream exists, all of the stream tasks will be resumed. If "IGNORE UntREATED" is specified, data written during the pause period of stream is ignored when resuming stream. + -- GitLab