How to make recursive query in SQLite?

前端 未结 4 1630

if my data structure is like this

parentA
-------parentAA
--------------parentAAA
---------------------childA

if i can get \"childA.name\" . h

4条回答
  •  醉酒成梦
    2021-02-11 06:26

    You can use nested set model. Nested sets have big advantage that they can be implemented in most SQL engines using simple, non-recursive SQL queries.

提交回复
热议问题