Skip to content

WHERE clause

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

The WHERE clause accepts an expression that must be satisfied.

Examples

$expression = Query::variable("n")->gte(Query::literal(10));

$statement = Query::new()
	->where($expression)
	->build();

$this->assertSame("WHERE (n >= 10)", $statement);
Clone this wiki locally