Skip to content

SET clause

Marijn edited this page Nov 29, 2021 · 5 revisions

The SET clause accepts a set of expressions to set.

Examples

$a = Query::variable("a")->assign(Query::literal(10));
$b = Query::variable("b")->assign(Query::literal(15));
$c = Query::variable("c")->labeled(["LABEL1", "LABEL2", "LABEL3"]);

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

$this->assertSame("SET a = 10, b = 15, c:LABEL1:LABEL2:LABEL3", $statement);
Clone this wiki locally