I am getting the errror:
Line/Col: 24/13
PLS-00103: Encountered the symbol ";" when expecting one of the following: (
When trying to compile the function:
create or replace function xml_sum (innXML XMLType, outXML XMLType) RETURN number
IS
sum NUMBER := 0;
BEGIN
FOR j IN
(SELECT y.feature, rownum
FROM XMLTABLE
('//FeatureVector/feature'
PASSING outXML
COLUMNS
feature NUMBER PATH '.') y)
LOOP
FOR i IN
(SELECT x.feature, rownum rn
FROM XMLTABLE
('//FeatureVector/feature'
PASSING innXML
COLUMNS
feature NUMBER PATH '.') x WHERE rn = j.rownum)
LOOP
sum := i.feature + j.feature;
END LOOP;
END LOOP;
RETURN sum;
END;
/
By the error it seems that I am missing a ";" but I cannot find where it is being missed.
Could someone point it out? It would certainly help!
Thanks in advance!!
sumto something other, let's sayv_sum_featurefor start.