"); //-->
SELECT userid,username
FROM user
WHERE userid in (2,3,1,5,4)
ORDER BY FIELD(userid,2,3,1,5,4)
查询结果
userid username
2 name2
3 name3
1 name1
5 name5
4 name4
*博客内容为网友个人发布,仅代表博主个人观点,如有侵权请联系工作人员删除。
eleaction01 阅读:3510
eleaction01 阅读:7679
eleaction01 阅读:9535
1679908110 阅读:10817