Let’s take this query:
WITH temp as SELECT '123455' colum from dual
SELECT * FROM big_table WHERE cod IN (SELECT colum from temp)
UNION ALL
SELECT * FROM big_table2 WHERE cod IN (SELECT colum from temp)
I’d like to search for a list of values as well as I can look for one single, but how can I build a list of rows without having to write a lot of UNION?
If you have a string table type available, then the following script might do what you want
You can create the stringarray type like this
I hope that answers your question.