[英]How to generate graphically tree with parent and child based on n level from database using array in PHP?
试试这个查询:
select id, `child_id`, `parent_id` , level from (select * from vtiger_ib_level order by parent_id, id) products_sorted, (select @pv := '60764') initialisation where find_in_set(`parent_id`, @pv) and length(@pv := concat(@pv, ',', id))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.