CUBRID 函数
PHP Manual

cubrid_drop

(PECL CUBRID >= 8.3.0)

cubrid_dropIs used to delete an instance

说明

bool cubrid_drop ( resource $conn_identifier , string $oid )

The cubrid_drop() function is used to delete an instance from database by using oid.

参数

conn_identifier

Connection identifier.

oid

Oid of the instance that you want to delete.

返回值

TRUE, when process is successful.

FALSE, when process is unsuccessful.

范例

Example #1 cubrid_drop() example

<?php
$deloid 
cubrid_get ($con$oid"order");
$res cubrid_drop ($con$deloid);  
if (
$res) {
   
cubrid_commit ($con);
} else {
   
cubrid_rollback ($con);
}
?>

参见


CUBRID 函数
PHP Manual