S
S
sitev_ru2015-09-30 12:30:21
MySQL
sitev_ru, 2015-09-30 12:30:21

Do menus have children in MySQL?

The menu table contains the fields: name, url, parent (name, where to go and the parent menu item) ...
How to determine that the item contains child elements?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Kovalsky, 2015-09-30
@sitev_ru

You can make JOIN type
and check that child.name IS NOT NULL
For example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question