PL/SQL (MOSC)

MOSC Banner

Comma seperated strin

edited Oct 26, 2011 4:27AM in PL/SQL (MOSC) 8 commentsAnswered ✓
Hi,

The query of a procedure is using IN clause to validate a parameter as below. In some scenarios to the parameter multiple values will have to be passed.

Can anyone please let me know how to pass string seprated values to IN clause

Query:

select *

from A

Where col1 in (:p_col1)

Parameter values:

p_col1 :=  1

p_col1 := 1,2,3 (if multiple values are being passed like this , query returns now rows).

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center