(No version information available, might only be in Git)
TableUpdate::limit — Limit update row count
$rows
)Set the maximum number of records or documents update.
rows
The maximum number of records or documents to update.
A TableUpdate object.
Example #1 mysql_xdevapi\TableUpdate::limit() example
<?php
$upd = $table->update()->orderBy('age desc')->set('age', 1)->set('name', 'Toddler');
$res = $upd->where('age > :param1 and age < :param2')->bind(['param1' => 500, 'param2' => 1901])->limit(2)->execute();
?>