图片1.png (13.83 KB, 下载次数: 10)
下载附件
2019-4-18 21:34 上传
图片2.png (8.8 KB, 下载次数: 17)
select borrow_log.borrower,sum(amount) from users left join borrow_log on users.id = borrow_log.debtor where users.gender = 1 group by borrow_log.borrower,borrow_log.debtor