I am looping through a delimited file and extracting an ID from one field which I need to pass to a function which will return another value that I will append to the line and write to another file. The function accepts a VARCHAR2 and also returns a VARCHAR2.
It errors on the SQL with "Error in sql query: ORA-00911: invalid character" as I suspect the variable is not being resolved before being passed. The query is simple enough and works fine from SQL*Plus when passed a real ID number in quotes:
SELECT get_medicaid_id({LOOP(CurrentValueX)})
FROM DUAL;
Surely I must be missing something simple here? Do I need to build a string first using STRING functions or something?
I didn't see a "translate value to constant in variable when running" checkbox as I would have expected on the SQL tab either.
Edited by moderator
2017-06-14T14:15:51Z
|
Reason: Not specified