« CollectionRemove::execute
CollectionRemove::sort »

CollectionRemove::limit

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

CollectionRemove::limit — 削除するドキュメントの数を限定する

説明

public function mysql_xdevapi\CollectionRemove::limit(int $rows): mysql_xdevapi\CollectionRemove

削除するドキュメントの数の最大値を設定します。

警告

この関数は、 現在のところ詳細な情報はありません。引数のリストのみが 記述されています。

パラメータ

rows

削除するドキュメントの数の最大値

戻り値

コマンドを実行したり、追加の操作を追加するのに使える CollectionRemove オブジェクト。

例

例1 mysql_xdevapi\CollectionRemove::limit() example

<?php

$res = $coll->remove('job in (\'Barista\', \'Programmatore\', \'Ballerino\', \'Programmatrice\')')->limit(5)->sort(['age desc', 'name asc'])->execute();

?>
関連キーワード:
CollectionRemove   ドキュメント   limit   mysql   xdevapi   限定   execute   sort   rows   最大値   information   available   詳細   記述   操作   example   coll   remove   Barista   Programmatore   Ballerino   Programmatrice   desc
関連する関数・ページ:
mysql-xdevapi-collectionremove.execute   class.mysql-xdevapi-collectionremove   mysql-xdevapi-collectionremove.construct   mysql-xdevapi-collectionremove.sort   mysql-xdevapi-collectionremove.bind   mysql-xdevapi-crudoperationlimitable.limit