SQL 树状数据查询之向下包含

    技术2022-05-20  37

    with a as( select ntID,ntParentID,ntName from tb_NewsType where ntID='9' union all select x.ntID,x.ntParentID,x.ntName from  tb_NewsType x,a where x.ntParentID=a.ntID) select * from a


    最新回复(0)