略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: CollectionModify::patch

2025-02-27

CollectionModify::patch

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

CollectionModify::patchPatch document

说明

public mysql_xdevapi\CollectionModify::patch(string $document): mysql_xdevapi\CollectionModify

Takes a patch object and applies it on one or more documents, and can update multiple document properties.

参数

document

A document with the properties to apply to the matching documents.

返回值

A CollectionModify object.

示例

示例 #1 mysql_xdevapi\CollectionModify::patch() example

<?php

$res
= $coll->modify('"Programmatore" IN job')->patch('{"Hobby" : "Programmare"}')->execute();

?>
添加备注

用户贡献的备注

此页面尚无用户贡献的备注。

官方地址:https://www.php.net/manual/en/mysql-xdevapi-collectionmodify.patch.php

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