mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
12 lines
336 B
MySQL
12 lines
336 B
MySQL
|
DROP TABLE IF EXISTS test.nullt;
|
||
|
|
||
|
CREATE TABLE test.nullt (c1 Nullable(UInt32), c2 Nullable(String))ENGINE = Log;
|
||
|
INSERT INTO test.nullt VALUES (1, 'abc'), (2, NULL), (NULL, NULL);
|
||
|
|
||
|
SELECT c2 = ('abc') FROM test.nullt;
|
||
|
SELECT c2 IN ('abc') FROM test.nullt;
|
||
|
|
||
|
SELECT c2 IN ('abc', NULL) FROM test.nullt;
|
||
|
|
||
|
DROP TABLE IF EXISTS test.nullt;
|