I have a lot of SQL with named parameters that I need to be able to execute in SQL Developer. For SQL where the parameters are scalar values it's easy to paste the SQL into a worksheet and SQL Developer will prompt me (in a dialog with the title "Enter Binds") to enter the parameter values. But for cases where the parameter needs to hold multiple values, like this:
select count(*) from foo
where foo.id in (:ids)
where, say, :ids
needs to be replaced with 1,2,3
so that the query executed is
select count(*) from foo
where foo.id in (1,2,3)
I try entering the values into the dialog (and I've tried delimiting with commas, or just spaces, or wrapping everything in parens), and regardless what I try I get the error message:
ORA-01722: invalid number
01722. 00000 - "invalid number"
*Cause:
*Action:
Is there a syntax for entering the multiple values into the "Enter Binds" dialog so that SQL Developer will be able to perform the substitution correctly? Or are the bindings strictly limited to scalar values?
I'm using Oracle SQL Developer 3.2.20.09.