I have this table:
CREATE TABLE TEST
(
DEP_CODIGO_UNIDAD NUMBER(4),
XPTO NUMBER(4)
)
And I want to do this as a function on pl:
select * from TEST where DEP_CODE in (4102, 3201, 8540,...,2010)
This works using SQL but as a PL function I receive the ora-01722 invalid number
My function looks like this:
FUNCTION REL_TEST(vCeco IN VARCHAR2,
errorCode OUT NUMBER) RETURN CURSOR IS
OPEN CURSOR (bla bla) ...
for
select * from TEST where DEP_CODE in (vCeco)
Any ideas? I'm using Oracle 11g by the way.