mysql_xdevapi\TableSelect
PHP Manual

TableSelect::offset

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

TableSelect::offsetSet limit offset

说明

public mysql_xdevapi\TableSelect mysql_xdevapi\TableSelect::offset ( integer $position )

Skip given number of rows in result.

参数

position

The limit offset.

返回值

A TableSelect object.

范例

Example #1 mysql_xdevapi\TableSelect::offset() example

<?php

$res 
$table->select()->where("name = :name")->orderby("age DESC")->limit(2)->bind(['name' => 'Tierney'])->execute();

?>

mysql_xdevapi\TableSelect
PHP Manual