Cubrid Functions
PHP Manual

cubrid_current_oid

(PHP 4, PHP 5)

cubrid_current_oidIs used to get the oid of the current cursor location

Description

mixed cubrid_current_oid ( int $req_handle )

The cubrid_current_oid() function is used to get the oid of the current cursor location from the query result. To use cubrid_current_oid(), the query executed must be a updatable query, and the CUBRID_ INCLUDE_OID option must be included during the query execution.

Parameters

req_handle

Request handle.

Return Values

Oid of current cursor location, when process is successful

FALSE, when process is unsuccessful.

Examples

Example #1 cubrid_current_oid() example

<?php
$req 
=cubrid_execute($con,"select * from person where id =1",
                           
CUBRID_INCLUDE_OID);
if (
$req) {
   
cubrid_fetch ($req);
   
$oid cubrid_current_oid ($req);
   
cubrid_close_request ($req);
   echo 
"OID is $oid";
}
?>

See Also


Cubrid Functions
PHP Manual