1.表数据

2.代码
select cate1.CategoryName as '类别名',cate2.CategoryName as '父类别名'
from tb_book_category cate1 left outer join tb_book_category cate2
on cate1.`AutoID`=cate2.`BaseID`;
3.结果

1.表数据

2.代码
select cate1.CategoryName as '类别名',cate2.CategoryName as '父类别名'
from tb_book_category cate1 left outer join tb_book_category cate2
on cate1.`AutoID`=cate2.`BaseID`;
3.结果


被折叠的 条评论
为什么被折叠?