mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-19 15:01:03 +00:00
16 lines
471 B
SQL
16 lines
471 B
SQL
create database if not exists test;
|
|
|
|
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;
|