Skip to content

How to fetch category path using id through SQL in Magento 2?

I want to get the path of specific category using it’s ID like "Default/.../.../CategoryName" through SQL query. How can I do that?

I get the category name using ID through SQL using this.