db.l3.ai

Play

lessons

what-changed-in-19

editor

engine: not started

results

Run a query to see rows here.

check

Recursive counter

WITH RECURSIVE has a start query, UNION ALL, and a step query that reads the CTE itself. It stops when the step returns no rows.

task

Produce the numbers 1 to 10 with WITH RECURSIVE, one column.

hints