Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PostgreSQLでselectに範囲を作成するにはどうすればよいですか?この結果が欲しいのですが:
num --- 1 2 3 4 5 6
次のようなクエリから:
SELECT range(1,6) AS num;
SELECT * FROM generate_series(1, 6) num
https://www.postgresql.org/docs/current/functions-srf.html