I have created a pipelined function in Oracle. I need to use this function to get a column value in table format; for that I have written this query:
SELECT *
FROM TABLE (
parse_comma_delimited(
( SELECT SOURCE_COLUMNS
FROM BW_SUPERMERGE_RULES
WHERE RULE_NAME = 'SQL2CUB'
), ',')
)
);
But I am getting the following error:
ORA-00933: SQL command not properly ended
00933. 00000 - "SQL command not properly ended"
Can any one suggest me to how to fix this?
I think your parenthesis is not properly matched, I've edited the code
SELECT *
FROM TABLE (parse_comma_delimited (SELECT SOURCE_COLUMNS
FROM BW_SUPERMERGE_RULES
WHERE RULE_NAME = 'SQL2CUB', ','));
Basically these kind of errors are for syntax.
I think this will work; if your function parse_comma_delimited is correct.
SELECT * FROM TABLE ( parse_comma_delimited( ( SELECT SOURCE_COLUMNS FROM BW_SUPERMERGE_RULES WHERE RULE_NAME = 'SQL2CUB' ), ',') );
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.