By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 8 Duplicates: 0 Warnings: 0
id | title | parent_id |
---|---|---|
1 | root | null |
2 | one | 1 |
3 | target | 2 |
4 | child one | 3 |
5 | child two | 3 |
Records: 8 Duplicates: 0 Warnings: 0
id | title | parent_id |
---|---|---|
1 | root | null |
2 | one | 1 |
3 | target | 2 |
4 | child one | 3 |
5 | child two | 3 |