mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-05 15:21:43 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
6 lines
300 B
SQL
6 lines
300 B
SQL
drop table if exists prewhere_alias;
|
|
create table prewhere_alias (a Int32, b Int32, c alias a + b) engine = MergeTree order by b;
|
|
insert into prewhere_alias values(1, 1);
|
|
select a, c + toInt32(1), (c + toInt32(1)) * 2 from prewhere_alias prewhere (c + toInt32(1)) * 2 = 6;
|
|
drop table prewhere_alias;
|