I know I can ‘SELECT 5 AS foo’ and get the resultset:
foo
5
(1 row)
…is there any way to ‘SELECT 5,6,7 AS foo’ and get the resultset:
foo
5
6
7
(3 rows)
…I’m well aware that this is not typical DB usage, and any conceivable usage of this is probably better off going w/ a more ordinary technique. More of a technical question.
Note: I know I could use a big gross list of UNIONs — I’m trying to find something else.
this is easy with a number table, here is an example
or if you want to use in