艺海无涯,学无止境。欢迎一起探讨技术和人生,了解我

标签 “递归” 共有 1 条结果

MySql

Mysql递归查询所有子项

   WITH RECURSIVE result(id, routename ,routeurl,typeid ,parentid) AS (SELECT id, routename ,routeurl,typeid ,parentid FROM auth_route WHERE id = 1 UNION ALL SELECT i.id, i.routename…