Open seaswalker opened 3 years ago
SELECT * FROM ( SELECT category, ( length(path) - length(replace(path, '.', '')) ) AS level FROM category_info ) _inner ORDER BY _inner.level DESC LIMIT 2;
path是以.分隔的字符串,代表层级。
.
path是以
.
分隔的字符串,代表层级。