摘要: 递归sql select t3.* from (select t1.*, if(find_in_set(pid, @pids) > 0, @pids := concat(@pids, ',', id), if (t1.id = @pids,@pids,0)) as ischild from ( se 阅读全文
posted @ 2019-06-02 14:42 小农_码 阅读(844) 评论(0) 推荐(0) 编辑