摘要: MySQL 查询in操作,查询结果按in集合顺序显示的实现代码,需要的朋友可以参考下。MySQL 查询in操作,查询结果按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 阅读全文
posted @ 2013-11-19 16:05 幻星宇 阅读(507) 评论(0) 推荐(0) 编辑