SPI_cursor_fetch

Name

SPI_cursor_fetch -- 從一個遊標裡抓取一些行

Synopsis

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

描述

SPI_cursor_fetch 從一個遊標裡抓取一些行。 這個函數等效于 SQL 命令 FETCH

參數

Portal portal

包含遊標的入口

bool forward

向前抓取時為真,向後抓取時為假

int count

要抓取的最大行數

返回值

SPI_exec 成功時那樣設置 SPI_processedSPI_tuptable