mysql 搜索按照in中顺序排序

select * from shopnc_order where order_id in (1225,1228,1231,1233) order by FIND_IN_SET(order_id,'1228,1225,1231,1233');

发表评论

电子邮件地址不会被公开。 必填项已用*标注

*