Supporting the WITH RECURSIVE clause

The following list shows which engines support the WITH RECURSIVE clause and which don't:

  • MariaDB: Not supported
  • MySQL: Not supported
  • PostgreSQL: Supported since PostgreSQL 8.4
  • SQLite: Supported since 3.8.3
  • Db2 LUW: Supported since 7 (2000)
  • Oracle: Supported since 11gR2 (in Oracle, it is usually more common to use the CONNECT BY clause instead of the WITH RECURSIVE clause)
  • Microsoft SQL Server: Supported since 2005

Get Mastering PostgreSQL 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.