mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
87 lines
1016 B
MySQL
87 lines
1016 B
MySQL
|
EXPLAIN SYNTAX
|
||
|
SELECT 1
|
||
|
UNION ALL
|
||
|
(
|
||
|
SELECT 1
|
||
|
UNION ALL
|
||
|
(
|
||
|
SELECT 1
|
||
|
UNION ALL
|
||
|
SELECT 1
|
||
|
)
|
||
|
UNION ALL
|
||
|
SELECT 1
|
||
|
);
|
||
|
|
||
|
SELECT ' ';
|
||
|
|
||
|
EXPLAIN SYNTAX
|
||
|
SELECT 1
|
||
|
UNION ALL
|
||
|
(
|
||
|
SELECT 1
|
||
|
UNION DISTINCT
|
||
|
(
|
||
|
SELECT 1
|
||
|
UNION ALL
|
||
|
SELECT 1
|
||
|
)
|
||
|
UNION ALL
|
||
|
SELECT 1
|
||
|
);
|
||
|
|
||
|
SELECT ' ';
|
||
|
|
||
|
EXPLAIN SYNTAX
|
||
|
SELECT x
|
||
|
FROM
|
||
|
(
|
||
|
SELECT 1 AS x
|
||
|
UNION ALL
|
||
|
(
|
||
|
SELECT 1
|
||
|
UNION DISTINCT
|
||
|
(
|
||
|
SELECT 1
|
||
|
UNION ALL
|
||
|
SELECT 1
|
||
|
)
|
||
|
UNION ALL
|
||
|
SELECT 1
|
||
|
)
|
||
|
);
|
||
|
|
||
|
SELECT ' ';
|
||
|
|
||
|
EXPLAIN SYNTAX
|
||
|
SELECT x
|
||
|
FROM
|
||
|
(
|
||
|
SELECT 1 AS x
|
||
|
UNION ALL
|
||
|
(
|
||
|
SELECT 1
|
||
|
UNION ALL
|
||
|
SELECT 1
|
||
|
)
|
||
|
);
|
||
|
|
||
|
SELECT ' ';
|
||
|
|
||
|
EXPLAIN SYNTAX
|
||
|
SELECT 1
|
||
|
UNION ALL
|
||
|
SELECT 1
|
||
|
UNION DISTINCT
|
||
|
SELECT 1;
|
||
|
|
||
|
SELECT ' ';
|
||
|
|
||
|
EXPLAIN SYNTAX
|
||
|
(((((((((((((((SELECT 1)))))))))))))));
|
||
|
|
||
|
SELECT ' ';
|
||
|
|
||
|
EXPLAIN SYNTAX
|
||
|
(((((((((((((((SELECT 1 UNION DISTINCT SELECT 1))) UNION DISTINCT SELECT 1)))) UNION ALL SELECT 1))))))));
|