(PECL CUBRID >= 8.3.0)
cubrid_seq_drop — Is used to delete an element
The cubrid_seq_drop() function is used to delete an element you request from the given sequence type attribute in the database.
Connection identifier.
Oid of the instance you want to work with.
Name of the attribute that you want to delete an element from.
Index of the element that you want to delete (1-based).
TRUE, when process is successful.
FALSE, when process is unsuccessful.
Пример #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++;
}
?>