本文共 139 字,大约阅读时间需要 1 分钟。
update sys_menu m1,sys_menu m2 set m1.ancestors=CONCAT(m2.ancestors,',',m1.parent_id)where m1.parent_id=m2.menu_id and m1.ancestors is NULL
转载地址:http://ajnab.baihongyu.com/