Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 16348 программистов и 1782 робота. Сейчас ищут 1759 программистов ...
cubrid_current_oid - Get OID of the current cursor location
Вернуться к: CUBRID Функции
cubrid_current_oid
(PECL CUBRID >= 8.3.0)
cubrid_current_oid — Get OID of the current cursor location
Описание
string cubrid_current_oid
( resource
$req_identifier
)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.
Список параметров
-
req_identifier
-
Request identifier.
Возвращаемые значения
Oid of current cursor location, when process is successful
FALSE
, when process is unsuccessful.
Примеры
Пример #1 cubrid_current_oid() 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 Функции