无限级分类查询

关于无限级分类的查询问题

分类表
cataid  parentid
1        0
2       1
3       1
4       2
5  2

表 table1

id  cataid  title

一个分类信息表,
根类别是parentid为0的


这时要查询出类别1下面的所有内容,怎么查,?

原文地址:https://www.cnblogs.com/xiaorong/p/1514164.html