2019-09-02 12:53:31 +00:00
|
|
|
set joined_subquery_requires_alias = 0;
|
2019-08-29 18:45:34 +00:00
|
|
|
|
2019-04-18 18:48:04 +00:00
|
|
|
drop table if exists t_00725_2;
|
|
|
|
drop table if exists s_00725_2;
|
2018-10-02 18:14:37 +00:00
|
|
|
|
2019-04-18 18:48:04 +00:00
|
|
|
create table t_00725_2(a Int64, b Int64) engine = TinyLog;
|
|
|
|
insert into t_00725_2 values(1,1);
|
|
|
|
insert into t_00725_2 values(2,2);
|
|
|
|
create table s_00725_2(a Int64, b Int64) engine = TinyLog;
|
|
|
|
insert into s_00725_2 values(1,1);
|
2018-10-02 18:14:37 +00:00
|
|
|
|
2019-04-18 18:48:04 +00:00
|
|
|
select a, b, s_a, s_b from t_00725_2 all left join (select a,b,a s_a, b s_b from s_00725_2) using (a,b);
|
2018-10-02 18:14:37 +00:00
|
|
|
select '-';
|
2019-04-18 18:48:04 +00:00
|
|
|
select t_00725_2.*, s_00725_2.* from t_00725_2 all left join s_00725_2 using (a,b);
|
2018-10-02 18:14:37 +00:00
|
|
|
select '-';
|
2019-04-18 18:48:04 +00:00
|
|
|
select a,b,s_a,s_b from t_00725_2 all left join (select a, b, a s_a, b s_b from s_00725_2) s_00725_2 on (s_00725_2.a = t_00725_2.a and s_00725_2.b = t_00725_2.b);
|
2018-10-02 18:14:37 +00:00
|
|
|
select '-';
|
2019-04-18 18:48:04 +00:00
|
|
|
select * from t_00725_2 all left join (select a s_a, b s_b from s_00725_2) on (s_a = t_00725_2.a and s_b = t_00725_2.b);
|
2018-10-02 18:14:37 +00:00
|
|
|
select '-';
|
2019-04-18 18:48:04 +00:00
|
|
|
select a,b,s_a,s_b from t_00725_2 all left join (select a,b, a s_a, b s_b from s_00725_2) on (s_a = t_00725_2.a and s_b = t_00725_2.b);
|
2018-10-02 18:14:37 +00:00
|
|
|
select '-';
|
2019-04-18 18:48:04 +00:00
|
|
|
select t_00725_2.*, s_00725_2.* from t_00725_2 all left join s_00725_2 on (s_00725_2.a = t_00725_2.a and s_00725_2.b = t_00725_2.b);
|
2018-10-02 18:14:37 +00:00
|
|
|
|
2019-04-18 18:48:04 +00:00
|
|
|
drop table if exists t_00725_2;
|
|
|
|
drop table if exists s_00725_2;
|