日期:2014-05-18 浏览次数:20685 次
select tb1.* from tb1 left join (select id from tb2 where tb2.value in (1,2) and tb2.stat<>'x') as tb2 on tb1.id=tb2.id where tb2.id is null