select * from a order by FIELD(state,3,2,4) DESC

desc排在最前面,asc排在最后面

posted on 2022-12-14 10:17  代码书写人生  阅读(83)  评论(0编辑  收藏  举报