v_count NUMBER(2);

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

RETURN 0;

相关文章: