Can I select full hierarchy of parents when id and parent id are in the same table?

前端 未结 3 1976
耶瑟儿~
耶瑟儿~ 2021-01-15 05:33

I have a table which has a column for Id and parentId. ParentId contains the Id of another row in the table. If the ParentId is null then it is the top of the hierarchy.

3条回答
提交回复
热议问题