select id,name,pid,path,CONCAT(path,‘-‘,id) as bpath from test ORDER BY bpath

mysql下的数据排序(concat)->无限极列表

mysql下的数据排序(concat)->无限极列表

mysql下的数据排序(concat)->无限极列表