Oracle multi value parameter error
-
02-06-2021 - |
Domanda
I am using below query in SSRS 2008 and I am getting an error when I click the 'Next' button on the Design Query window in Report Wizard.
"An error occurred while the query design method was being saved. ORA-00911: invalid character"
SELECT E.EMPID, E.NAME
FROM EMP E
WHERE E.EMPID IN (SELECT COLUMN_VALUE FROM TABLE(CAST(SPLIT(:I_IDS) AS TEMP_TBL)));
What am I doing wrong?
Soluzione
Have you tried simplifying your WHERE clause to use the condition:
WHERE E.EMPID IN (:I_IDS);
- in your query? (This won't work for multiple values in a normal SQL client, but does in SSRS datasets, in my experience.)
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow