mysql_xdevapi\CollectionFind
PHP Manual

CollectionFind::execute

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

CollectionFind::executeExecute the statement

说明

public mysql_xdevapi\DocResult mysql_xdevapi\CollectionFind::execute ( void )

The execute function needs to be invoked in order to trigger the client to send the CRUD operation request to the server.

参数

此函数没有参数。

返回值

A DocResult object that can be used to query the status of the operation

范例

Example #1 mysql_xdevapi\CollectionFind::execute() example

<?php

//Assuming $coll is a valid Collection object

//Search the collection for all the documents for which the field
//'name' is either "Marco" or "Lucio"
$res $coll->find('name IN ("Marco","Lucio")')->execute();

?>

mysql_xdevapi\CollectionFind
PHP Manual