DELETE
Contents
DELETE#
Syntax#
DeleteStmt ::=
DELETE FROM TableName WHERE where_condition
TableName ::=
Identifier ('.' Identifier)?
Description
The filter columns specified by
WHERE
must be an index column. if it is a key column, only=
can be used.
Examples#
DELETE FROM t1 WHERE col1 = 'aaaa';
DELETE FROM t1 WHERE col1 = 'aaaa' and ts_col = 1687145994000;
DELETE FROM t1 WHERE col1 = 'aaaa' and ts_col > 1687059594000 and ts_col < 1687145994000;
DELETE FROM t1 WHERE ts_col > 1687059594000 and ts_col < 1687145994000;