By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
not an error
id | item_name | parent_id | list_order | ord |
---|---|---|---|---|
14 | Teste | 0 | 0 | 0000 |
5 | Profundo | 0 | 1 | 0001 |
4 | Fundo | 0 | 2 | 0002 |
8 | Dhdhd | 4 | 0 | 00020000 |
10 | Fsfsfsfs | 8 | 0 | 000200000000 |
9 | Gagagaga | 8 | 1 | 000200000001 |
7 | Profundo | 4 | 1 | 00020001 |
3 | Teste | 0 | 3 | 0003 |
12 | Teste 2 | 3 | 0 | 00030000 |
13 | Teste 1 | 3 | 1 | 00030001 |
11 | Teste 3 | 3 | 2 | 00030002 |
1 | Pois | 0 | 4 | 0004 |
2 | Então | 0 | 5 | 0005 |
6 | Gigante | 0 | 6 | 0006 |