Home > PHP > Function > OCI8 > oci_fetch()

oci_fetch()

oci_fetch - Fetches the next row from a query into internal buffers

Syntax

bool oci_fetch (resource $statement)

Arguments

  • statement - A valid OCI8 statement identifier created by oci_parse() and executed by oci_execute(), or a REF CURSORstatement identifier.

Description

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().

Version

PHP 5, PECL OCI8 >= 1.1.0

Return value

Returns TRUE on success or FALSE if there are no more rows in the statement.