oci_fetch

PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0
oci_fetch - Fetches the next row from a query into internal buffers
Manual
Code Examples

oci_fetch( resource$statement ): bool

Fetches the next row from a query into internal buffers accessible either with oci_result, or by using variables previously defined with oci_define_by_name.

See oci_fetch_array for general information about fetching data.

Parameters

statement

A valid OCI8 statement identifier created by oci_parse and executed by oci_execute, or a REF CURSOR statement identifier.

Return Values

Returns true on success or false if there are no more rows in the statement.

Notes

Note:

Will not return rows from Oracle Database Implicit Result Sets. Use oci_fetch_array instead.

Related Functions

Example of oci_fetch

Show all examples for oci_fetch

PHP Version:


Function oci_fetch:

Oracle OCI8 Functions

Most used PHP functions