2021-02-26 12:04:11 +00:00
|
|
|
EXPLAIN SYNTAX
|
|
|
|
SELECT 1
|
|
|
|
UNION ALL
|
|
|
|
(
|
|
|
|
SELECT 1
|
|
|
|
UNION ALL
|
|
|
|
(
|
|
|
|
SELECT 1
|
|
|
|
UNION ALL
|
|
|
|
SELECT 1
|
|
|
|
)
|
|
|
|
UNION ALL
|
|
|
|
SELECT 1
|
|
|
|
);
|
|
|
|
|
2021-05-15 09:11:13 +00:00
|
|
|
SELECT '-';
|
2021-02-26 12:04:11 +00:00
|
|
|
|
|
|
|
EXPLAIN SYNTAX
|
|
|
|
SELECT 1
|
|
|
|
UNION ALL
|
|
|
|
(
|
|
|
|
SELECT 1
|
|
|
|
UNION DISTINCT
|
|
|
|
(
|
|
|
|
SELECT 1
|
|
|
|
UNION ALL
|
|
|
|
SELECT 1
|
|
|
|
)
|
|
|
|
UNION ALL
|
|
|
|
SELECT 1
|
|
|
|
);
|
|
|
|
|
2021-05-15 09:11:13 +00:00
|
|
|
SELECT '-';
|
2021-02-26 12:04:11 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2021-05-15 09:11:13 +00:00
|
|
|
SELECT '-';
|
2021-02-26 12:04:11 +00:00
|
|
|
|
|
|
|
EXPLAIN SYNTAX
|
|
|
|
SELECT x
|
2021-05-15 09:11:13 +00:00
|
|
|
FROM
|
2021-02-26 12:04:11 +00:00
|
|
|
(
|
|
|
|
SELECT 1 AS x
|
|
|
|
UNION ALL
|
|
|
|
(
|
|
|
|
SELECT 1
|
|
|
|
UNION ALL
|
|
|
|
SELECT 1
|
|
|
|
)
|
|
|
|
);
|
|
|
|
|
2021-05-15 09:11:13 +00:00
|
|
|
SELECT '-';
|
2021-02-26 12:04:11 +00:00
|
|
|
|
|
|
|
EXPLAIN SYNTAX
|
|
|
|
SELECT 1
|
|
|
|
UNION ALL
|
|
|
|
SELECT 1
|
|
|
|
UNION DISTINCT
|
|
|
|
SELECT 1;
|
|
|
|
|
2021-05-15 09:11:13 +00:00
|
|
|
SELECT '-';
|
2021-02-26 12:04:11 +00:00
|
|
|
|
|
|
|
EXPLAIN SYNTAX
|
|
|
|
(((((((((((((((SELECT 1)))))))))))))));
|
|
|
|
|
2021-05-15 09:11:13 +00:00
|
|
|
SELECT '-';
|
2021-02-26 12:04:11 +00:00
|
|
|
|
|
|
|
EXPLAIN SYNTAX
|
|
|
|
(((((((((((((((SELECT 1 UNION DISTINCT SELECT 1))) UNION DISTINCT SELECT 1)))) UNION ALL SELECT 1))))))));
|