mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 15:01:03 +00:00
14 lines
307 B
MySQL
14 lines
307 B
MySQL
|
drop table if exists ax;
|
||
|
drop table if exists bx;
|
||
|
|
||
|
create table ax (A Int64, B Int64) Engine = Memory;
|
||
|
create table bx (A Int64) Engine = Memory;
|
||
|
|
||
|
insert into ax values (1, 1), (2, 1);
|
||
|
insert into bx values (2), (4);
|
||
|
|
||
|
select * from bx, ax where ax.A = bx.A and ax.B in (1,2);
|
||
|
|
||
|
drop table ax;
|
||
|
drop table bx;
|