CollectionModify::unset
(No version information available, might only be in Git)
CollectionModify::unset — Unset the value of document fields
说明
Removes attributes from documents in a collection.
参数
fields
-
The attributes to remove from documents in a collection.
返回值
CollectionModify object that can be used for further processing.
示例
示例 #1 mysql_xdevapi\CollectionModify::unset() example
<?php
$res = $coll->modify('job like :job_name')->unset(["age", "name"])->bind(['job_name' => 'Plumber'])->execute();
?>
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。
备份地址:http://www.lvesu.com/blog/php/mysql-xdevapi-collectionmodify.unset.php