I have an OUT parameter for a stored procedure as REF CURSOR . Based on a certain condition, I would like to either return a set of results (already implemented). But how do I return an empty cursor when a condition fails? Without involving an exception? Just insert pseudo code:
IF condition = true THEN OPEN OUT_CUR FOR Select Some query ELSE Return empty OUT_CUR END IF
source share