pgsql offset
时间: 2023-08-21 22:04:44 浏览: 194
pgsql表修改
在pgsql中,可以使用OFFSET子句来指定查询结果的起始位置。OFFSET后面的参数表示要跳过的行数。注意,第一行的偏移量是0。例如,如果要从第2行开始返回结果,可以使用"OFFSET 1"。可以结合LIMIT子句一起使用,以限制返回的行数。例如,"LIMIT 10 OFFSET 20"表示从第21行开始返回10行结果。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [oracle(rownum)与 pgsql(limit,offset)中 分页&限制条数查询](https://blog.csdn.net/qq_35388136/article/details/122670677)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* [PostgreSQL中offset...limit分页优化常见手段](https://blog.csdn.net/dazuiba008/article/details/128872086)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *3* [PostgreSQL LIMIT和OFFSET](https://blog.csdn.net/sinat_23931991/article/details/103390764)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文