Looping on values, creating dynamic query and adding to result set
问题 I have the following problem. I am an experienced Java programmer but am a bit of a n00b at SQL and PL/SQL. I need to do the following. 1 Pass in a few arrays and some other variables into a procedure 2 Loop on the values in the arrays (they all have the same number of items) and dynamically create an SQL statement 3 Run this statement and add it to the result set (which is an OUT parameter of the procedure) I already have experience of creating an SQL query on the fly, running it and adding