cubrid_current_oid
cubrid_current_oid
Get OID of the current cursor location
string **cubrid_current_oid** resource $req_identifier
The function is used to get the
oid of the current cursor location from the query result. To use
, the query executed must be a
updatable query, and the option must be included during
the query execution.
cubrid_current_oid``cubrid_current_oid``CUBRID_INCLUDE_OID
req_identifierRequest identifier.
Oid of current cursor location, when process is successful,return.falseforfailure.
Voorbeeld: example
<?php
$conn = cubrid_connect("localhost", 33000, "demodb", "dba");
$req = cubrid_execute($conn, "SELECT * FROM code", CUBRID_INCLUDE_OID);
$oid = cubrid_current_oid($req);
$res = cubrid_get($conn, $oid);
print_r($res);
cubrid_disconnect($conn);
?>
Array
(
[s_name] => X
[f_name] => Mixed
)
cubrid_execute