![](/img/trans.png)
[英]MYSQL 8 - How to find out if a `node` is a 'leaf node' IN CTE While retrieve a tree
[英]mysql how to find the leaf node according to the pid
尝试这个:
select pnumber,campus_number from yourTable where pnumber = 440696 and campus_number not in(44069601)
如果你只想要这个输出:
where campus_number in (44069604,44069605,4406960101,4406960102)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.