ClickHouse/tests/queries/0_stateless/00490_with_select.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

9 lines
492 B
SQL

with pow(2,2) as four select pow(four, 2), 2 as two, pow(two, 2);
select `pow(four, 2)`, `pow(2, 2)` from (with pow(2,2) as four select pow(four, 2), 2 as two, pow(two, 2));
with (select pow(2,2)) as four select pow(four, 2), 2 as two, pow(two, 2);
select `pow(four, 2)`, `pow(2, 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');