日期:2014-05-17 浏览次数:20714 次
with tmp_table as
(select wid from u t2 where t2.uid = 用户1)
select * from u t1
where t1.uid = 用户1
and not exists (
select 1 from
(
select regexp_substr(警告号,'[^,]+',1,level) wid from dual connect by level<=
(select length(警告号)-length(replace(警告号,',')) from dual)+1
) t4
where not exists ( select 1 from tmp_table t5 where t5.wid=t4.wid )
);