What is a fast/readable way to SELECT a relation from \"nothing\" that contains a list of numbers. I want to define which numbers by setting a start and end value. I am usi
A simple way to do this in PostgreSQL and SQLite is as follows:
sqlite> select 1 union select 2 union select 3;
1
2
3
It should work in most RDBMS systems, but IIRC in Oracle you would have to use:
select 1 from dual union select 2 from dual union select 3 from dual;
But I don't have an Oracle DB to test it on.