- 博客(1)
- 收藏
- 关注
原创 Mysql [IN语句]查询的时候,查询结果排序问题
select * from test where id in(3,1,5) order by find_in_set(id,'3,1,5'); select * from test where id in(3,1,5) order by substring_index('3,1,2',id,1); SQL: select * from table where id IN (3,6,9,1,2,5,8,7); 这样的情况取出来后,其实,id还是按1,2,3,4,5,6,7,8,9,排序的,但如果我...
2020-08-27 17:07:28
358
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人