CodePudding user response:
Table structure requires two key fields:The node ID
The higher the node ID
Other nodes information casually
For example,
Node ID of the superior node ID
1 the root node 0
2 secondary node 1 1
3 secondary node 2 1
4 level 3 nodes 1.1 2
5 level 3 nodes 1.2 2
6 tertiary node 2.1 3
1.2.1 5 7 4 node
This moment tree structure is stored in this list,
CodePudding user response:
Id, the parent id, through recursive loading,