ClickHouse/tests/queries/0_stateless/00619_union_highlite.sql

15 lines
241 B
MySQL
Raw Normal View History

2021-09-12 12:35:27 +00:00
-- Tags: no-parallel
2018-04-13 18:49:23 +00:00
DROP TABLE IF EXISTS union;
create view union as select 1 as test union all select 2;
SELECT * FROM union ORDER BY test;
DETACH TABLE union;
ATTACH TABLE union;
SELECT * FROM union ORDER BY test;
DROP TABLE union;