A,B,C 三张表 关系表B一对多 怎么取一对一 oracle

2025-02-25 05:10:56
推荐回答(1个)
回答1:

select a.userid,a.username,max(c.address)
from A a,B b,C c where a.userid=b.userid and b.addid=c.addid
group by a.userid,a.username