[quote=引用 10 楼 hbgzg3006 的回复:] 大神们,貌似我找到了一个方法,不知道行不行。 http://stackoverflow.com/questions/20215744/how-to-create-a-mysql-hierarchical-recursive-query
大神们,貌似我找到了一个方法,不知道行不行。 http://stackoverflow.com/questions/20215744/how-to-create-a-mysql-hierarchical-recursive-query
有1楼的那种顺序关系么?有就1楼的,没有就要写存储过程了,mysql 没有递归查询
应该是深度递归 这个: select * from treeNodes where FIND_IN_SET(newid , getChildLst(5));
select * from table where newid <= your_id
56,679
社区成员
56,709
社区内容
加载中
试试用AI创作助手写篇文章吧