1.一个表中根据以父子级别关系查询显示出来(如图) select t.* from department t CONNECT BY PRIOR t.depid=t.supdepid ; --这样也可以,但查出来的结果会有重复select t.* from department t start with supdepid=0 CONNECT BY PRIOR t.depid=t.supdepid ;--这样就不会了select t.* from department t start with
原文地址:http://mysql.rjweb.org/doc.php/deletebig Table of Contents The ProblemWhy it is a ProblemInnoDB and undoSolutionsPARTITIONDeleting in ChunksInnoDB Chunking RecommendationIterating through a compound keyReclaiming the disk spaceDeleting more than