mysql_xdevapi\Collection
PHP Manual

Collection::dropIndex

(No version information available, might only be in Git)

Collection::dropIndexDrop collection index

说明

public bool mysql_xdevapi\Collection::dropIndex ( string $index_name )

Drop an index with the given name. Silently succeeds if the index does not exist (no error or warning raised). To confirm the drop has been executed the user should check the boolean return type.

参数

index_name

The name of the index that has to be dropped.

返回值

The functions return a boolean value, true if the drop has succeed and false in the other case.

范例

Example #1 mysql_xdevapi\Collection::dropIndex() example

<?php

/* ... */

?>

mysql_xdevapi\Collection
PHP Manual