mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-03 21:12:28 +00:00
15 lines
230 B
MySQL
15 lines
230 B
MySQL
|
USE test;
|
||
|
|
||
|
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;
|