mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-13 11:04:10 +00:00
10 lines
301 B
MySQL
10 lines
301 B
MySQL
|
DROP TABLE IF EXISTS testmt;
|
||
|
|
||
|
CREATE TABLE testmt (`CounterID` UInt64, `value` String) ENGINE = MergeTree() ORDER BY CounterID;
|
||
|
|
||
|
INSERT INTO testmt VALUES (1, '1'), (2, '2');
|
||
|
|
||
|
SELECT arrayJoin([CounterID NOT IN (2)]) AS counter FROM testmt WHERE CounterID IN (2) GROUP BY counter;
|
||
|
|
||
|
DROP TABLE testmt;
|