Oracle CASE WHEN 用法介绍
发布时间:2020-12-12 18:48:51 所属栏目:百科 来源:网络整理
导读: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/archiv
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 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |