略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: TokyoTyrantTable::setIndex

2024-04-27

TokyoTyrantTable::setIndex

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrantTable::setIndexSets index

说明

public TokyoTyrantTable::setIndex ( string $column , int $type ) : mixed

Sets an index on a specified column. The index type is one of the TokyoTyrant::RDBIT_* constants. Passing TokyoTyrant::RDBIT_VOID removes the index.

参数

column

The name of the column

type

The index type

返回值

This method returns the current object and throws TokyoTyrantException on failure.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/tokyotyranttable.setindex.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3