- aWithout column list:
WITH RECURSIVE query_name AS (SELECT…) - bWithout keyword
recursive• Nojoinin recursive branch—use comma-join (,) - cWithout keyword
recursive - dUse
cycle … restrict• Nousing …sub-clause - eNo
using …sub-clause - fMinor deviation: contents of <sequence column>
- gWorkaround: use
row_number() over()to implement top-N query
Note
T131 also allows recursive views, which are not yet covered on this page.
Related
Reference: Infinite Recursion Guards
Tutorial:
With— Organize Complex Queries
Normative References
T131, “Recursive query”, is an optional feature in ISO/IEC 9075-2:2023. It first appeared in SQL:1999.0

