Skip to content

Commit

Permalink
Update Recursive SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmcsherry committed Dec 13, 2024
1 parent e95f1ec commit 5301e14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions posts/2022-12-25.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ You haven't been able to use this in Materialize yet though, for various reasons
The good news is that as of quite recently, Materialize has preliminary (behind the `--unsafe-mode` flag) support for a tentatively named `WITH MUTUALLY RECURSIVE` clause.
This clause differs from SQL's `WITH RECURSIVE` in some important ways, and I'll explain what those are and why I'm excited about them.

---

**UPDATE (2024)**: Materialize's recursive SQL support landed and has now been live for all users for over a year. The `WITH MUTUALLY RECURSIVE` syntax has worked out great, users have responded positively, and you can [read more about it](https://materialize.com/docs/sql/select/recursive-ctes) and [try it out yourself](https://materialize.com/register/?utm_campaign=General&utm_source=documentation), both in the cloud and locally, as you prefer.

---

## Recursion in SQL

[SQL99](https://en.wikipedia.org/wiki/SQL:1999) introduced the very useful common table expressions (CTEs), and with them the `RECURSIVE` modifier that allowed *recursive* common table expressions.
Expand Down

0 comments on commit 5301e14

Please sign in to comment.