mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-05 14:02:21 +00:00
24 lines
495 B
SQL
24 lines
495 B
SQL
SET allow_experimental_analyzer = 1;
|
|
|
|
DROP TABLE IF EXISTS test_table;
|
|
CREATE TABLE test_table
|
|
(
|
|
id UInt64,
|
|
value String
|
|
) ENGINE=TinyLog;
|
|
|
|
INSERT INTO test_table VALUES (0, 'Value_0'), (1, 'Value_1'), (2, 'Value_2');
|
|
|
|
DROP TABLE IF EXISTS special_set_table;
|
|
CREATE TABLE special_set_table
|
|
(
|
|
id UInt64
|
|
) ENGINE=Set;
|
|
|
|
INSERT INTO special_set_table VALUES (0), (1);
|
|
|
|
SELECT id, value FROM test_table WHERE id IN special_set_table;
|
|
|
|
DROP TABLE special_set_table;
|
|
DROP TABLE test_table;
|