闭关修行中......
第一种:select * from qx_cate order by id desc;第二种:select from qx_cate where id != 16 union all select from qx_cate where id = 16;
order by cast(replace(path, ',', '') as unsigned integer)
You need to pay attention to the situation when path exceeds the range of int, or find another way
Because the path is based on Alphabetical SortingThe main question is Natural Sorting There are related solutions online, you can find it yourself
第一种:select * from qx_cate order by id desc;
第二种:select from qx_cate where id != 16 union all select from qx_cate where id = 16;
You need to pay attention to the situation when path exceeds the range of int, or find another way
Because the path is based on Alphabetical Sorting
The main question is Natural Sorting
There are related solutions online, you can find it yourself