![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
How can I use a varchar2 IN parameter in an IN clause in PLSQL?? i.e. v_parms IN varchar2 (v_parms would look like ('scott','dave','mike') ) Begin Select * from table where table_field in v_parms; End Do I have to use a DBMS_SQL.Open .. DBMS_SQL.Parse sequence?? Thanks SW No, you need to write a function that converts the comma delimited list to a |
#3
| |||
| |||
|
|
"Scott" <scott.wilson19 (AT) comcast (DOT) net> wrote in message news:6ZadnbFGANl7AoffRVn-ig (AT) comcast (DOT) com... How can I use a varchar2 IN parameter in an IN clause in PLSQL?? i.e. v_parms IN varchar2 (v_parms would look like ('scott','dave','mike') ) Begin Select * from table where table_field in v_parms; End Do I have to use a DBMS_SQL.Open .. DBMS_SQL.Parse sequence?? Thanks SW No, you need to write a function that converts the comma delimited list to a pl/sql table and do a cast to table. see asktom.oracle.com Jim |
![]() |
| Thread Tools | |
| Display Modes | |
| |