ClickHouse/dbms/tests/queries/0_stateless/00481_view.sql

10 lines
314 B
SQL

DROP TABLE IF EXISTS test.null;
DROP TABLE IF EXISTS test.null_view;
CREATE TABLE test.null (x UInt8) ENGINE = Null;
CREATE VIEW test.null_view AS SELECT * FROM test.null WHERE toUInt64(x) IN (SELECT number FROM system.numbers);
INSERT INTO test.null VALUES (1);
DROP TABLE test.null;
DROP TABLE test.null_view;