無限分類數據表(三級) 查看所有三級數據(面試題)

SELECT   c.one AS '一級分類' ,    C.`name` AS '二級分類' , D.`name` AS '三級分類' FROM   ( SELECT  A.`name` AS 'one', B.`name` , B.id AS 'id' FROM   tb_item_cat AS A   LEFT JOIN   tb_item_cat AS B  ON  B.parent_i
相關文章
相關標籤/搜索