CUBRID 函数
PHP Manual

cubrid_lock_write

(PECL CUBRID >= 8.3.0)

cubrid_lock_writeIs used to put write lock

说明

bool cubrid_lock_write ( resource $conn_identifier , string $oid )

The cubrid_lock_write() function is used to put write lock on the instance pointed by the given oid.

参数

conn_identifier

Connection identifier.

oid

Oid of the instance that you want to put write lock on.

返回值

TRUE, when process is successful.

FALSE, when process is unsuccessful.

范例

Example #1 cubrid_lock_write() example

<?php
$lock_oid 
cubrid_get ($con$oid"next_id");
$res cubrid_lock_write ($con$lock_oid);
?>

参见


CUBRID 函数
PHP Manual