PHP 8.5.0 Beta 3 available for testing

CollectionRemove::limit

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

CollectionRemove::limit โ€” Limit number of documents to remove

่ฏดๆ˜Ž

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

Sets the maximum number of documents to remove.

่ญฆๅ‘Š

ๆœฌๅ‡ฝๆ•ฐ่ฟ˜ๆœช็ผ–ๅ†™ๆ–‡ๆกฃ๏ผŒไป…ๆœ‰ๅ‚ๆ•ฐๅˆ—่กจใ€‚

ๅ‚ๆ•ฐ

rows

The maximum number of documents to remove.

่ฟ”ๅ›žๅ€ผ

Returns a CollectionRemove object that can be used to execute the command, or to add additional operations.

็คบไพ‹

็คบไพ‹ #1 mysql_xdevapi\CollectionRemove::limit() example

<?php

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

?>
๏ผ‹ๆทปๅŠ ๅค‡ๆณจ

็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจ

ๆญค้กต้ขๅฐšๆ— ็”จๆˆท่ดก็Œฎ็š„ๅค‡ๆณจใ€‚
To Top