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 的选择中创建一个范围?我想要这个结果:
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