略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: cubrid_current_oid

2024-12-20

cubrid_current_oid

(PECL CUBRID >= 8.3.0)

cubrid_current_oidGet OID of the current cursor location

说明

cubrid_current_oid(resource $req_identifier): string

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.

范例

示例 #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
)

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.cubrid-current-oid.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3