select id,pid,sourceid from malldiscuss m, Clubuser c where m.userid=c.userid and m.ischeck=1start with m.pid=1 connect by prior m.id=m.pid order SIBLINGS by m.id desc
树形sql查询
子查询>交叉(左右连接)>联合.. 查询速度的顺序
联合查询本来就是查询语句中效率较低的一种。
select id,pid,sourceid from malldiscuss m, Clubuser c where m.userid=c.userid and m.ischeck=1start with m.pid=1 connect by prior m.id=m.pid order SIBLINGS by m.id desc
树形sql查询
子查询>交叉(左右连接)>联合.. 查询速度的顺序
联合查询本来就是查询语句中效率较低的一种。