日期:2014-05-17 浏览次数:20897 次
declare i number; begin SELECT count(*) into i FROM tbdata.DPF_S_PH_BOTTAG a WHERE NOT EXISTS ( SELECT 1 FROM tbdata.IMS_EPC_INFO b WHERE a.tagid = b.tid ); if i>0 then dbms_output.putline('在b表中不存在'); end;
CASE search_expression WHEN expression1 THEN result1 … ELSE default_result END
CASE WHEN search_expression=expression1 THEN result1 … ELSE default_result END