mysql根据in条件的顺序排序
select * from t_user u
where u.user_id in ('123','456','789')
order by field(u.user_id,'123','456','789')
select * from t_user u
where u.user_id in ('123','456','789')
order by field(u.user_id,'123','456','789')
本文标题:新技能GET-mysql根据in条件的顺序排序
本文链接:https://www.haomeiwen.com/subject/xsrvyxtx.html
网友评论