Select*
FROMtable1
Where(ID IN(3,5,1,4,2))
ORDERBY FIND_IN_SET(ID, '3,5,1,4,2')
本文标题:mysql select 按id原来顺序排序
本文链接:https://www.haomeiwen.com/subject/idwvkftx.html
网友评论