ClickHouse/tests/queries/0_stateless/00939_test_null_in.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
301 B
MySQL
Raw Normal View History

2019-06-07 16:02:24 +00:00
DROP TABLE IF EXISTS nullt;
2019-04-30 03:50:30 +00:00
2019-06-07 16:02:24 +00:00
CREATE TABLE nullt (c1 Nullable(UInt32), c2 Nullable(String))ENGINE = Log;
INSERT INTO nullt VALUES (1, 'abc'), (2, NULL), (NULL, NULL);
2019-04-30 03:50:30 +00:00
2019-06-07 16:02:24 +00:00
SELECT c2 = ('abc') FROM nullt;
SELECT c2 IN ('abc') FROM nullt;
2019-04-30 03:50:30 +00:00
2019-06-07 16:02:24 +00:00
SELECT c2 IN ('abc', NULL) FROM nullt;
2019-04-30 03:50:30 +00:00
2019-06-07 16:02:24 +00:00
DROP TABLE IF EXISTS nullt;