略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: TokyoTyrantQuery::setOrder

2024-11-15

TokyoTyrantQuery::setOrder

(PECL tokyo_tyrant >= 0.1.0)

TokyoTyrantQuery::setOrderOrders results

说明

public TokyoTyrantQuery::setOrder ( string $name , int $type ) : mixed

Sets the order of a query

参数

name

The column name to apply the ordering on.

type

The type can be one of the following constants:

  • TokyoTyrant::RDBQO_STRASC - String ascending
  • TokyoTyrant::RDBQO_STRDESC - String descending
  • TokyoTyrant::RDBQO_NUMASC - Numberic ascending
  • TokyoTyrant::RDBQO_NUMDESC - String descending

返回值

This method returns the current object.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/tokyotyrantquery.setorder.php

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