Hierarchical Data in MySQL

后端 未结 8 1626
南笙
南笙 2020-12-04 22:57

I\'ve got a sort of tree like thing going on in my MySQL database.

I have a database that has categories, and each category has a subcat. I\'m keeping all the catego

8条回答
  •  南笙
    南笙 (楼主)
    2020-12-04 23:34

    This thread may help: http://forums.mysql.com/read.php?10,32818,32818#msg-32818

    What you really want is START WITH and CONNECT BY syntax, but this is only supported in Oracle, not MySQL.

提交回复
热议问题