Skip to content

WITH clause

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

The WITH clause accepts a list of expression, with optionally an alias for each expression.

Examples

$statement = Query::new()
	->with(["n" => Query::variable("a")])
	->build();

$this->assertSame("WITH a AS n", $statement);
Clone this wiki locally