标签:where HERE sele rom 根据 parentId union sel sql
with a as ( select id,name,parentid from categories where id=53 union all select x.id,x.name,x.parentid from categories x,a where x.parentid=a.id ) select * from a
标签:where HERE sele rom 根据 parentId union sel sql
原文地址:https://www.cnblogs.com/chenxizhaolu/p/9273648.html