Hello everyone, I had a problem when choosing a category tree. Here is the request I am sending.
SELECT DISTINCT category.id, category.parent_id, category.name FROM category JOIN category_closure ON category.id = category_closure.descendant WHERE category_closure.ancestor > 1; This query only works in Mysql 5.7, and in Mysql 5.6 does not work. Update Mysql is not an option Answer Mysql 5.7 Answer Mysql 5.6 Base