mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
14 lines
486 B
MySQL
14 lines
486 B
MySQL
|
drop table if exists fooL;
|
||
|
drop table if exists fooR;
|
||
|
create table fooL (a Int32, v String) engine = Memory;
|
||
|
create table fooR (a Int32, v String) engine = Memory;
|
||
|
|
||
|
insert into fooL select number, 'L' || toString(number) from numbers(2);
|
||
|
insert into fooL select number, 'LL' || toString(number) from numbers(2);
|
||
|
insert into fooR select number, 'R' || toString(number) from numbers(2);
|
||
|
|
||
|
select distinct a from fooL any join fooR using(a) order by a;
|
||
|
|
||
|
drop table fooL;
|
||
|
drop table fooR;
|