Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 645 Bytes

Limit.md

File metadata and controls

23 lines (16 loc) · 645 Bytes

Used in Select, Update and Delete statements.

Constructor

__construct(int $size, ?int $offset = null)

Parameter Description
$rowCount The number of rows to effect
$offset The offset to start counting at

Example

use FaaPz\PDO\Clause\Limit;

// ... LIMIT ?
$statement->limit(new Limit(10));

// ... LIMIT ? OFFSET ?
$statement->limit(new Limit(10, 30));