CollectionRemove::limit

削除するドキュメントの数を限定する

説明

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

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

警告

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

パラメータ

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();

?>