IF Exists在Oracle中怎么用?


v_count NUMBER(2);

SELECT COUNT(*) INTO v_count FROM T_AAA;
IF v_count>0 THEN RETURN 1;
END IF;

RETURN 0;

原文地址:https://www.cnblogs.com/RobotTech/p/1911144.html