如何在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