Skip to content

RETURN clause

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

The RETURN clause accepts a set of expressions to return, as well as whether or not to return only DISTINCT results.

Examples

$a = Query::variable("a");
$b = Query::variable("b");

$statement = Query::new()
	->returning([$a, $b], true)
	->build();

$this->assertSame("RETURN DISTINCT a, b", $statement);
Clone this wiki locally