MySQL where in 排序

来源:互联网 发布:linux怎么安装pycharm 编辑:程序博客网 时间:2024/06/10 06:36
select * from table where id in (5,1,8) 

Where in 按条件顺序排序 

select * from table where id in (5,1,8) order by field(id, 5, 1 ,8)
0 0