27,581
社区成员
发帖
与我相关
我的任务
分享;with tb as
(
select tt1.a,tt1.b,tt1.c,tt2.d from t1 as tt1
inner join t2 as tt2 on tt1.a=tt2.a
order by tt2.d
union all
select tt1.a,tt1.b,tt1.c,tt2.d from............. )
select a,b,c from tb order by dselect a,b,c from t1 as tt1
inner join t2 as tt2 on tt1.a=tt2.a
order by (select d from t2)