日期:2014-05-17 浏览次数:20878 次
select t.id, t.name from t_user_info t where exists (select 1 from t_res_code c where t.id=c.userid)
select t.id, t.name from t_user_info t where (select count(0) from t_res_code c where t.id=c.userid)>0