CodePudding user response:
Write a function,This is my post - http://bbs.csdn.net/topics/392169277, now is a little small problems,
CodePudding user response:
The parent, child, the child of the child, three level league?CodePudding user response:
Can write their own functions? A recursive function, if there is a child, as the parent id to queryCodePudding user response:
Using a recursive common table expressionAS WITH XXX (
.
Union all
.
) select * from XXX.
This kind of structure
CodePudding user response:
A recursive query tree to baidu checkCodePudding user response:
Recursive query 4 #