Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Invalid Number Using 'IN' Clause

577449Aug 30 2007 — edited Aug 30 2007
Hi,

I use the following select statement to populate a report.
<p>
SELECT cpnidd, ...
FROM pdrcpn, pdrcpnsts
WHERE pdrcpnsts.cpnref1=pdrcpn.cpnref
AND pdrcpn.bizidd1 IN (SELECT PKG_APEX.GetUserBizIds(:APP_USER) from dual)
<p>
In the <b>IN</b> clause I use a call to a function to return a list of comma seperated numbers. This only works if a single number is returned, if more than one number is returned (eg. 23,34) I get the following error:
<p>
report error:
ORA-01722: invalid number
<p>
Am stumped as to why this is happening or how I can fix it, any help would be greatly appreciated.
<p>
Cheers
<p>
Simon
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2007
Added on Aug 30 2007
4 comments
782 views