downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

TokyoTyrantQuery::key> <TokyoTyrantQuery::current
[edit] Last updated: Fri, 07 Jun 2013

view this page in

TokyoTyrantQuery::hint

(No hay información de versión disponible, podría estar únicamente en SVN)

TokyoTyrantQuery::hintGet the hint string of the query

Descripción

public string TokyoTyrantQuery::hint ( void )

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.

Parámetros

Esta función no tiene parámetros.

Valores devueltos

This method always returns a string

Ejemplos

Ejemplo #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());
?>

El resultado del ejemplo sería algo similar a:

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

Ver también



add a note add a note User Contributed Notes TokyoTyrantQuery::hint - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites