12 lines
267 B
MySQL
12 lines
267 B
MySQL
|
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;
|
||
|
/
|