mysql_xdevapi\CollectionAdd
PHP Manual

CollectionAdd::execute

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

CollectionAdd::executeExecute the statement

说明

public mysql_xdevapi\Result mysql_xdevapi\CollectionAdd::execute ( void )

The execute method is required to send the CRUD operation request to the MySQL server.

参数

此函数没有参数。

返回值

A Result object that can be used to verify the status of the operation, such as the number of affected rows.

范例

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

<?php
// Assuming $coll is a valid collection Object, the call to 'execute' is needed to trigger
// the submission of the CRUD operation to the server.
$coll->add('{"name": "Marco",      "age": 19, "job": "Programmatore"}')->execute();

?>

mysql_xdevapi\CollectionAdd
PHP Manual