mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
12 lines
202 B
MySQL
12 lines
202 B
MySQL
|
|
||
|
SELECT 1, b
|
||
|
FROM numbers(1)
|
||
|
ARRAY JOIN [materialize(3) IN (SELECT 42)] AS b
|
||
|
;
|
||
|
|
||
|
SELECT *
|
||
|
FROM (SELECT materialize(42) as a) as t1
|
||
|
JOIN (SELECT materialize(1) as a) as t2
|
||
|
ON t1.a IN (SELECT 42) = t2.a
|
||
|
;
|