Skip to content

WITH clause

Marijn van Wezel edited this page Jan 1, 2023 · 3 revisions

The WITH clause allows query parts to be chained together, piping the results from one to be used as starting points or criteria in the next.

Query::with(Alias|AnyType|bool|float|int|mixed[]|Pattern|string|(Alias|AnyType|bool|float|int|mixed[]|Pattern|string)[] $expressions): Query

Parameters

  • $expressions : An entry to add, or a non-empty list of entries to add; if the array-key is non-numerical, it is used as the alias.

Relevant methods

  • addEntry(Alias|Pattern|string|Variable ...$entries): self : Add one or more new entries to the WITH clause.

External links