2025年9月25日: PostgreSQL 18 釋出!
支援的版本: 當前 (18) / 17 / 16 / 15 / 14 / 13
開發版本: devel
不支援的版本: 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1 / 8.0 / 7.4

SPI_cursor_fetch

SPI_cursor_fetch — 從遊標中獲取一些行

概要

void SPI_cursor_fetch(Portal portal, bool forward, long count)

描述

SPI_cursor_fetch 從遊標中獲取一些行。這等同於 SQL 命令 FETCH 的一個子集(更多功能請參閱 SPI_scroll_cursor_fetch)。

引數

Portal portal

包含遊標的 Portal

bool forward

true 表示向前獲取,false 表示向後獲取

long count

要獲取的最大行數

返回值

如果成功,SPI_processedSPI_tuptable 的設定與 SPI_execute 中的相同。

註釋

如果遊標的計劃在建立時沒有使用 CURSOR_OPT_SCROLL 選項,那麼向後獲取可能會失敗。

提交更正

如果您在文件中發現任何不正確之處、與您對特定功能的體驗不符之處或需要進一步澄清之處,請使用 此表格 報告文件問題。