Oracle9i Supplied PL/SQL Packages and Types Reference
Release 1 (9.0.1)

Part Number A89852-02
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback

Go to previous page Go to beginning of chapter Go to next page

DBMS_HS_PASSTHROUGH, 11 of 15


FETCH_ROW Function

This function fetches rows from a result set. The result set is defined with a SQL SELECT statement. When there are no more rows to be fetched, the exception NO_DATA_FOUND is raised. Before the rows can be fetched, a cursor has to be opened, and the SQL statement has to be parsed.

Syntax

DBMS_HS_PASSTHROUGH.FETCH_ROW (
   c       IN BINARY_INTEGER NOT NULL,
   first   IN BOOLEAN)
  RETURN BINARY_INTEGER;

Parameters

Table 17-20 FETCH_ROW Function Parameters
Parameter  Description 
c
 

Cursor associated with the pass-through SQL statement. Cursor must be opened and parsed, using the routines OPEN_CURSOR and PARSE respectively. 

first
 

(Optional) Reexecutes SELECT statement. Possible values:

- TRUE: reexecute SELECT statement.

- FALSE: fetch the next row, or if run for the first time, then execute and fetch rows (default). 

Returns

The returns the number of rows fetched. The function returns "0" if the last row was already fetched.

Exceptions

Table 17-21 FETCH_ROW Procedure Exceptions
Exception  Description 
ORA-28550
 

The cursor passed is invalid. 

ORA-28552
 

Procedure is not run in right order. (Did you first open the cursor and parse the SQL statement?) 

ORA-28555
 

A NULL value was passed for a NOT NULL parameter. 

Pragmas

Purity level defined : WNDS 

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2001, Oracle Corporation.

All Rights Reserved.
Go To Documentation Library
Home
Go To Product List
Book List
Go To Table Of Contents
Contents
Go To Index
Index

Master Index

Feedback