Skip to Main Content

SQL & PL/SQL

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!

Convert parameter string to number

reachmeabcJun 20 2013 — edited Jun 20 2013

Hello all,

I have a requirement where i need to pass a string of numbers to a column of number datatype.

When i pass the string of number as parameters ( ex '123,345,2354,456), this is being passed on as a number to column datatype with single quotes around it and so producing "Invalid Number" message.

Parameter = '123,234,355,46567'

Oralce query

select 1 from xxx

where ID in (Parameter)  -- ID is an integer and so throwing "Invalid Number" message.

How can i remove the single quotes around the parameter while passing it to ID for comparision

We are using 10g oracle

Appreciate your responses.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 18 2013
Added on Jun 20 2013
1 comment
571 views