I'm trying to do a query that will turn a list of literal values into a result set, but I can't quite figure out the syntax without doing a union.
Here are a couple things I've tried:
SELECT *
FROM (1, 2, 3, 5, 6) temp(id);
select x.* from
(('test-a1', 'test-a2'), ('test-b1', 'test-b2'), ('test-c1', 'test-c2')) x(col1, col2);
Something like that where I'm expecting a result set that looks like:
id
1
2
3
4
5
etc…
or
col1 | col2
test-a1, test-a2
test-b1, test-b2
test-c1, test-c2
etc…