mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-20 07:21:02 +00:00
14 lines
434 B
MySQL
14 lines
434 B
MySQL
|
drop table if exists test.t;
|
||
|
drop table if exists test.s;
|
||
|
|
||
|
create table test.t(a Int64, b Int64, c String) engine = TinyLog;
|
||
|
insert into test.t values(1,1,'a'),(2,2,'b');
|
||
|
create table test.s(a Int64, b Int64, c String) engine = TinyLog;
|
||
|
insert into test.s values(1,1,'a');
|
||
|
|
||
|
|
||
|
select t.* from test.t all left join test.s on (s.a = t.a and s.b = t.b) where s.a = 0 and s.b = 0;
|
||
|
|
||
|
drop table if exists test.t;
|
||
|
drop table if exists test.s;
|