Oracle CASE WHEN 用法介绍

前端之家收集整理的这篇文章主要介绍了Oracle CASE WHEN 用法介绍前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
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

猜你在找的Oracle相关文章