摘要: WITH RECURSIVE cte AS( SELECT a.* FROM tab a where a.pid='1' UNION ALL SELECT k.* FROM tab k INNER JOIN cte c ON c.id= k.pid )SELECT * FROM cte pid:上级 阅读全文
posted @ 2023-10-12 09:42 天涯已可 阅读(7) 评论(0) 推荐(0) 编辑