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.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
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.
Produce the numbers 1 to 10 with WITH RECURSIVE, one column.