mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
24 lines
749 B
SQL
24 lines
749 B
SQL
DROP TABLE IF EXISTS set;
|
|
CREATE TABLE set (x String) ENGINE = Memory;
|
|
INSERT INTO set VALUES ('hello');
|
|
SELECT (arrayJoin(['hello', 'world']) AS s) IN set, s;
|
|
|
|
DROP TABLE set;
|
|
CREATE TABLE set (x String) ENGINE = Set;
|
|
INSERT INTO set VALUES ('hello');
|
|
SELECT (arrayJoin(['hello', 'world']) AS s) IN set, s;
|
|
|
|
DROP TABLE set;
|
|
|
|
DROP TABLE IF EXISTS join;
|
|
CREATE TABLE join (k UInt8, x String) ENGINE = Memory;
|
|
INSERT INTO join VALUES (1, 'hello');
|
|
SELECT k, x FROM (SELECT arrayJoin([1, 2]) AS k) js1 ANY LEFT JOIN join USING k;
|
|
|
|
DROP TABLE join;
|
|
CREATE TABLE join (k UInt8, x String) ENGINE = Join(ANY, LEFT, k);
|
|
INSERT INTO join VALUES (1, 'hello');
|
|
SELECT k, x FROM (SELECT arrayJoin([1, 2]) AS k) js1 ANY LEFT JOIN join USING k;
|
|
|
|
DROP TABLE join;
|