SELECT T2.*,T1.* FROM T1,T2 WHERE (CASE WHEN T2.COMPARE_TYPE = 'A' AND T1.SOME_TYPE LIKE 'NOTHING%' THEN 1 WHEN T2.COMPARE_TYPE != 'A' AND T1.SOME_TYPE NOT LIKE 'NOTHING%' THEN 1 ELSE 0 END) = 1
转自:http://www.cnblogs.com/eshizhan/archive/2012/04/06/2435493.html
原文链接:https://www.f2er.com/oracle/210580.html