摘要: pg 9.4为表函数引入了自动生成行号的功能,如下: =# SELECT * FROM generate_series(4,1,-1) WITH ORDINALITY; generate_series | ordinality + 4 | 1 3 | 2 2 | 3 1 | 4 但是它不能用于普通表 阅读全文
posted @ 2022-12-13 20:43 zhjh256 阅读(74) 评论(0) 推荐(0) 编辑