下载
mkdir -p /data/db
插入
select id from ( select t1.id,
if(find_in_set(parent_id, @pids) > 0, @pids := concat(@pids, ',', t1.id), 0) as ischild from ( select t.id,t.parent_id from t_region t order by parent_id, id ) t1,
(select @pids := 3 id) t2 ) t3 where ischild != 0