cubrid_seq_drop
(PECL CUBRID >= 8.3.0)
cubrid_seq_drop — Is used to delete an element
Description
int cubrid_seq_drop
( resource $conn_identifier
, string $oid
, string $attr_name
, int $index
)
The cubrid_seq_drop() function is used to delete an element you request from the given sequence type attribute in the database.
Parameters
- conn_identifier
-
Connection identifier.
- oid
-
Oid of the instance you want to work with.
- attr_name
-
Name of the attribute that you want to delete an element from.
- index
-
Index of the element that you want to delete (1-based).
Return Values
TRUE, when process is successful.
FALSE, when process is unsuccessful.
Examples
Example #1 cubrid_seq_drop() example
<?php
$elems = cubrid_col_get ($con, $oid, "style");
$i = 1;
while (list ($key, $val) = each($elems)) {
if ($val == "1") {
echo $val;
cubrid_seq_drop ($con, $oid, "style", $i);
}
$i++;
}
?>
See Also
- cubrid_seq_insert() - Is used to insert an element to a sequence
- cubrid_seq_put() - Is used to update the content