CUBRID Функции
PHP Manual

cubrid_seq_drop

(PECL CUBRID >= 8.3.0)

cubrid_seq_dropIs used to delete an element

Описание

bool 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.

Список параметров

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).

Возвращаемые значения

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++;
}
?>

Смотрите также


CUBRID Функции
PHP Manual