2019-04-18 18:48:04 +00:00
|
|
|
drop table if exists t_00818;
|
|
|
|
drop table if exists s_00818;
|
2019-02-05 16:58:57 +00:00
|
|
|
|
2019-04-18 18:48:04 +00:00
|
|
|
create table t_00818(a Nullable(Int64), b Nullable(Int64), c Nullable(String)) engine = Memory;
|
|
|
|
create table s_00818(a Nullable(Int64), b Nullable(Int64), c Nullable(String)) engine = Memory;
|
2019-02-05 16:58:57 +00:00
|
|
|
|
2019-04-18 18:48:04 +00:00
|
|
|
insert into t_00818 values(1,1,'a'), (2,2,'b');
|
|
|
|
insert into s_00818 values(1,1,'a');
|
2019-02-05 16:58:57 +00:00
|
|
|
|
2019-04-18 18:48:04 +00:00
|
|
|
select * from t_00818 left join s_00818 on t_00818.a = s_00818.a;
|
|
|
|
select * from t_00818 left join s_00818 on t_00818.a = s_00818.a and t_00818.a = s_00818.b;
|
|
|
|
select * from t_00818 left join s_00818 on t_00818.a = s_00818.a where s_00818.a = 1;
|
|
|
|
select * from t_00818 left join s_00818 on t_00818.a = s_00818.a and t_00818.a = s_00818.a;
|
|
|
|
select * from t_00818 left join s_00818 on t_00818.a = s_00818.a and t_00818.b = s_00818.a;
|
2019-02-05 16:58:57 +00:00
|
|
|
|
2019-04-18 18:48:04 +00:00
|
|
|
drop table t_00818;
|
|
|
|
drop table s_00818;
|