Generate n rows from dual
23.10.2009
I needed to generate exactly n rows and then this is very handy.
select * from (
select level lvl
from dual
connect by level <= N
)
Found at: http://awads.net/wp/2005/07/01/generating-n-rows-from-dual/
blog comments powered by Disqus