再将余数对应的客服UPDATE给这条记录。
select * from(select t1.id-t2.min_id+1 as new_id,t1.name,t1.other
from pai_ban_biao t1
inner join (select min(id) as min_id,name from pai_ban_biao group by name )t2
on t1.name=t2.name
)t3
order by t3.new_id,t3.other
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)