Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个索引页面类别,我想显示所有父类别及其子类别,如下所示,怎么做? http://i.upanh.com/rndntq
选择 c1.cat_id 作为 childID,c1.cat_name ChildName,c2.cat_name 作为 ParentName 从类别 c1 LEFT OUTER JOIN category c2 ON c1.parent = c2.cat_id