2019-06-03 17:36:27 +00:00
|
|
|
DROP TABLE IF EXISTS test.test_00599;
|
|
|
|
DROP TABLE IF EXISTS test.test_view_00599;
|
2018-03-08 01:20:07 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
CREATE TABLE test.test_00599(id UInt64) ENGINE = Log;
|
|
|
|
CREATE VIEW test.test_view_00599 AS SELECT * FROM test.test_00599 WHERE id = (SELECT 1);
|
2018-03-08 01:20:07 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
DETACH TABLE test.test_view_00599;
|
|
|
|
ATTACH TABLE test.test_view_00599;
|
2018-03-08 01:20:07 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
SHOW CREATE TABLE test.test_view_00599;
|
2018-03-08 01:20:07 +00:00
|
|
|
|
2019-06-03 17:36:27 +00:00
|
|
|
DROP TABLE IF EXISTS test.test_00599;
|
|
|
|
DROP TABLE IF EXISTS test.test_view_00599;
|