一个表有两个外键都指向另一个表的主键时,如何检索他们的数据? 例如,表TableA有两个列,puserID和friendID. 表TableB有两个列,userID和userName. 我们怎样检索数据并让这些数据按照puserID.puserIDName.friendID和friend_userName显示呢? 记录: SELECT t1.puserID,t2.userNameAS puserIDName ,t1.friendID,t3.userName AS friend_userName …