Reputation: 337
Is there any way to write this query from oracle rdbms in postgres? What I care about it to have track of the iterations made(level) and to be able to iterate a particular number of times(10).
SELECT LEVEL
FROM dual
CONNECT BY LEVEL <= 10;
Upvotes: 0
Views: 63
Reputation:
You can use generate_series()
select *
from generate_series(1,10) as t(nr)
Upvotes: 2