ClickHouse/tests/queries/0_stateless/00599_create_view_with_subquery.sql

16 lines
391 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-parallel
2019-06-07 16:02:24 +00:00
DROP TABLE IF EXISTS test_00599;
DROP TABLE IF EXISTS test_view_00599;
2019-06-07 16:02:24 +00:00
CREATE TABLE test_00599(id UInt64) ENGINE = Log;
CREATE VIEW test_view_00599 AS SELECT * FROM test_00599 WHERE id = (SELECT 1);
2019-06-07 16:02:24 +00:00
DETACH TABLE test_view_00599;
ATTACH TABLE test_view_00599;
2019-06-07 16:02:24 +00:00
SHOW CREATE TABLE test_view_00599;
2019-06-07 16:02:24 +00:00
DROP TABLE IF EXISTS test_00599;
DROP TABLE IF EXISTS test_view_00599;