日期:2014-05-16 浏览次数:20657 次
select id, name, user_id from T1 c where exists(select 1 from T1 a, T2 b where a.user_id = b.user_id1 and a.user_id = 1 and b.user_id2 = c.user_id) order by `时间字段` ------解决方案--------------------