views:

44

answers:

1

Hi,

how can I make a range in a select in PostgreSQL ? I'd like to have this return:

num
---
1
2
3
4
5
6

In a query like:

SELECT range(1,6) AS num;
+2  A: 
SELECT  *
FROM    generate_series(1, 6) num
Quassnoi