Skip to content

LIMIT clause

Marijn van Wezel edited this page Oct 13, 2021 · 4 revisions

The LIMIT clause accepts an expression that returns a scalar that is the limit.

Examples

$statement = Query::new()
        ->limit(Query::literal(10))
	->build();

$this->assertSame("LIMIT 10", $statement);
Clone this wiki locally