Hierarchical Data in MySQL

后端 未结 8 1598
南笙
南笙 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条回答
  •  Happy的楠姐
    2020-12-04 23:39

    1. Use the IN operator.
    2. Use a stored procedure.
    3. Optimise your tables to better reflect how they tend to get used.

提交回复
热议问题