#2
雕龙2022-01-03 11:50
|
查询结果需要插入另一张表,插入的数据过亿,能优化么
select
T1.a
T1.b
.
.
.
T2.c AS 2c
T3.c AS 3c
from a T1
left join b T2
on T1.a=T2.a
and T2.b=1
left join b T3
on T1.a=T3.a
and T3.b=2