mysql_xdevapi\TableDelete
PHP Manual

TableDelete::limit

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

TableDelete::limitLimit deleted rows

说明

public mysql_xdevapi\TableDelete mysql_xdevapi\TableDelete::limit ( integer $rows )

Sets the maximum number of records or documents to delete.

参数

rows

The maximum number of records or documents to delete.

返回值

TableDelete object.

范例

Example #1 mysql_xdevapi\TableDelete::limit() example

<?php

$table
->delete()->where("name = :name")->orderby("id DESC")->limit(2)->bind(['name' => 'Cassidy'])->execute();

?>

mysql_xdevapi\TableDelete
PHP Manual