Skip to content
Advertisement

Tag: recursive-query

Mysql Mariadb recursive query

I have the following table : and a recursive query on it : which works and prints the following result : I would have liked to add an extra column to the result, namely “parent_name”. How do I do this? Edited to add: https://stackoverflow.com/a/22376973/2027239 That was the answer on an older question which I used to build my query Answer

Advertisement