I wonder if it is possible to populate ref cursor in explicit loop. For example, let's say I need a recordset of sequential numbers
1
2
3
...
1000000
but do not have any table to select them from. These numbers can easily be generated in a loop by incrementing an integer variable. But looks like to populate ref cursor we still need to SELECT from someting. Can we use loop or yet more involed logic to generate a ref cordset?
1
2
3
...
1000000
but do not have any table to select them from. These numbers can easily be generated in a loop by incrementing an integer variable. But looks like to populate ref cursor we still need to SELECT from someting. Can we use loop or yet more involed logic to generate a ref cordset?