略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: TokyoTyrantQuery::hint

2024-12-23

TokyoTyrantQuery::hint

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

TokyoTyrantQuery::hintGet the hint string of the query

说明

public TokyoTyrantQuery::hint ( void ) : string

Get the hint string of the query. The hint string contains information about an executed query and it could be compared to for example MySQL EXPLAIN statement.

参数

此函数没有参数。

返回值

This method always returns a string

范例

Example #1 TokyoTyrantQuery::hint example

<?php
$tt 
= new TokyoTyrantTable("localhost"1979);
$tt->vanish();

for (
$i 0$i 11$i++) {
     
$tt->put(null, array('a_col' => 'a' $i'b_col' => 'b' $i));
}

$query $tt->getQuery();
$query->addCond('a_col'TokyoTyrant::RDBQC_STRBW'a');

$query->search();
var_dump($query->hint());
?>

以上例程的输出类似于:

string(72) "
scanning the whole table
result set size: 11
leaving the natural order
"

参见

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.hint.php

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