PHP Conference Japan 2024

CrudOperationLimitable::limit

(無版本資訊,可能僅在 Git 中)

CrudOperationLimitable::limit設定結果限制

說明

abstract public mysql_xdevapi\CrudOperationLimitable::limit(int $rows): mysql_xdevapi\CrudOperationLimitable

設定要返回的記錄或文件的最大數量。

警告

此函式目前沒有說明文件;僅提供其參數列表。

參數

rows

記錄或文件的最大數量。

回傳值

一個 CrudOperationLimitable 物件。

範例

範例 #1 mysql_xdevapi\CrudOperationLimitable::limit() 範例

<?php

$res
= $coll->find()->fields(['name as n','age as a','job as j'])->groupBy('j')->limit(11)->execute();
$res = $table->update()->set('age',69)->where('age > 15 and age < 22')->limit(4)->orderby(['age asc','name desc'])->execute();

?>
新增註釋

使用者貢獻的註釋

此頁面沒有使用者貢獻的註釋。
To Top