As we can select multiple rows into single variable declared as some_table.rowtype in SQL. In the same way I want to fetch multiple row values of single column into a variable. So,
- How can I declare it’s variable type?
- Can I use that in where clause?
- Can I iterate through that variable(collection) values?
I want to do it in a stored procedure to delete one or more table records matching that variable values.
Does this work for you?