2016 - 2024

感恩一路有你

sql递归函数start with mysql递归查询,不用存储过程?

浏览量:2735 时间:2021-03-18 05:23:41 作者:admin

mysql递归查询,不用存储过程?

with a as(select * from table1 where parentid=0union allselect b.* from a,table1 b where a.id=b.parentid)select * from a用with as 来实现递归

sql递归函数start with mysql递归查询树节点 mysql递归查询所有子节点

版权声明:本文内容由互联网用户自发贡献,本站不承担相关法律责任.如有侵权/违法内容,本站将立刻删除。