I have a table like this
| id | path |
|---|---|
| 1 | / |
| 2 | /a/ |
| 3 | /a/b/ |
| 4 | /a/b/c/ |
| 5 | /a/b/c/d |
When I use a path (e.g., path = '/a/b/c/') in the where clause, I would like to retrieve the children of this path.
e.g.:
id path
| id | path |
|---|---|
| 1 | / |
| 2 | /a/ |
| 3 | /a/b/ |
| 4 | /a/b/c/ |
how can I achieve this?