oracle sql 搜索数据重复 select a.* from wcm_site a,wcm_siteright b where (b.rightnote='AD025' or b.rightnote in ('1','3')) and a.id=b.siteid and a.id like '____' order by a.id;
--这样就不会有重复了
select a.* from wcm_site a
where exists (select * from wcm_siteright b
where a.id=b.siteid and (b.rightnote='AD025' or b.rightnote in ('1','3')))
and a.id like '____'
order by a.id;