ClickHouse/tests/queries/0_stateless/01649_with_alias_key_condition.sql

12 lines
309 B
MySQL
Raw Normal View History

2021-01-10 09:40:47 +00:00
drop table if exists alias_key_condition;
create table alias_key_condition ( i int, j int ) engine MergeTree order by i;
insert into alias_key_condition values (1, 2), (3, 4);
set force_primary_key = 1;
with i as k select * from alias_key_condition where k = 3;
drop table if exists alias_key_condition;