无限极分内 自联查询
Posted cw828
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了无限极分内 自联查询相关的知识,希望对你有一定的参考价值。
select gtext,ftext,stext from (select a.id as gid,a.pid as gpid, a.text as gtext,b.id as fid,b.pid as fpid,b.text as ftext,c.id as sid,c.pid as spid,c.text as stext
from ag_base_area a join ag_base_area b on a.id=b.pid
left join ag_base_area c on b.id = c.pid order by stext) n
where fpid<1000 order by gtext
以上是关于无限极分内 自联查询的主要内容,如果未能解决你的问题,请参考以下文章