ClickHouse/dbms/tests/queries/0_stateless/00714_create_temporary_table_with_in_clause.sql

5 lines
284 B
MySQL
Raw Normal View History

2019-06-02 21:21:58 +00:00
CREATE TABLE test_merge_1(id UInt64) ENGINE = Log;
CREATE TABLE test_merge_2(id UInt64) ENGINE = Log;
CREATE TEMPORARY TABLE temporary_table AS SELECT * FROM numbers(1) WHERE number NOT IN (SELECT id FROM merge('default', 'test_merge_1|test_merge_2'));
SELECT * FROM temporary_table;