core-jgi/db/ddlutils/oracle/functions/isIntersectCSV.sql

12 lines
267 B
SQL

CREATE or REPLACE FUNCTION isIntersectCSV( p_csv1 IN VARCHAR2 , p_csv2 IN VARCHAR2)
RETURN CHAR AS
BEGIN
IF toTableOfVarchar2(p_csv1) MULTISET INTERSECT toTableOfVarchar2(p_csv2) IS NOT EMPTY
THEN
RETURN 'Y';
ELSE
RETURN 'N';
END IF;
END;
/