By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
id | parent | title |
---|---|---|
1 | 1 | title 1 |
2 | 2 | title 2 |
3 | 3 | title 3 |
@parameter |
---|
[{"id":1,"parent":0,"title":"строка 1"},{"id":2,"parent":1,"title":"строка 2"}] |
id | parent | title |
---|---|---|
1 | 0 | строка 1 |
2 | 1 | строка 2 |
3 | 3 | title 3 |