ClickHouse/tests/queries/0_stateless/00490_with_select.sql

9 lines
534 B
MySQL
Raw Normal View History

2023-02-17 15:50:46 +00:00
SET allow_experimental_analyzer = 1;
with pow(2,2) as four select pow(four, 2), 2 as two, pow(two, 2);
2023-01-25 10:46:22 +00:00
select `pow(four, 2)`, `pow(two, 2)` from (with pow(2,2) as four select pow(four, 2), 2 as two, pow(two, 2));
with (select pow(two,2)) as four select pow(four, 2), 2 as two, pow(two, 2);
select `pow(four, 2)`, `pow(two, 2)` from (with (select pow(2,2)) as four select pow(four, 2), 2 as two, pow(two, 2));
with 'string' as str select str || '_abc';
select `concat(str, \'_abc\')` from (with 'string' as str select str || '_abc');