日期:2014-05-18 浏览次数:20481 次
select * from friend f where userid in (select friendId from friend where userid='a') and t.userid !='a'
------解决方案--------------------
select id,userid,friendid from friend where b.userid in (select friendid from tb where userid=a) and friendid not in (select friendid from tb where userid='a'