时间:2021-07-01 10:21:17 帮助过:24人阅读
select a.*, sum(money) as money from 表1 a left join 表2 b on a.id=b.id
1 A 45
2 B 20
select a.*, sum(money) as money from 表1 a left join 表2 b on a.id=b.id
1 A 45
2 B 20
select a.*, sum(money) as money from 表1 a left join 表2 b on a.id=b.id
1 A 45
2 B 20