select id,name,pid,path,CONCAT(path,'-',id) as bpath from test ORDER BY bpath
mysql下的数据排序(concat)->无限极列表
猜你喜欢
转载自www.cnblogs.com/2019gdiceboy/p/12219900.html
周排行
select id,name,pid,path,CONCAT(path,'-',id) as bpath from test ORDER BY bpath