I have one select statement that returns a query like this:
SELECT value FROM dummy WHERE condition = 1;
ROW | value
-----|-----
1 | val1
2 | val2
3 | val3
4 | val4
I have 4 variables
r1, r2, r3, r4
What is the cleanest way to assign those variables the values of my query? Can I use a SELECT INTO statement?
and rownum < 5to your where clause. I hope this is concept code and not production code.