Oracle:

select name from order where order_id in('','','','','','')order by instr('111,222,333,444,555,666',order_id);

Mysql:

select name from order where order_id in ('','','','','','') order by instr(',111,222,333,444,555,666,',CONCAT(',',order_id,','));

摘自:https://blog.csdn.net/u011884440/article/details/70510805

最新文章

  1. 罪恶装备 Xrd REVELATOR 3D进化出的非照片真实视觉
  2. iOS 细碎知识整理
  3. boost::xml——基本操作以及中文乱码解决方案
  4. 在SAE上同步djanogo的mysql数据库
  5. C++11 tuple
  6. tyvj1185营业额统计
  7. API经济产业
  8. 利用Delphi监视注册表的变化
  9. Emgu.CV(三)
  10. java并发包下的并发工具类
  11. ORACLE虚拟索引(Virtual Index)
  12. 循环table 示例
  13. 序列号多个input输入demo
  14. 关于输出螺旋矩阵的demo
  15. Four Node.js Gotchas that Operations Teams Should Know about
  16. 【日常训练】Help Victoria the Wise(Codeforces 99C)
  17. linux shell 完成批量压缩文件
  18. linux mongodb replica set集群安装
  19. /usr/local/nginx/sbin/nginx -s reload 失败原因pid 进程记录和当前不符
  20. WPF与Winform中的不同(1)

热门文章

  1. vs2017离线安装vs tools for unity
  2. linux (04) linux安装mysql
  3. 201871010126 王亚涛 《面向对象程序设计JAVA》第十四周学习总结
  4. leetcode203. 移除链表元素
  5. node fs相对路径
  6. arduino雨滴传感器
  7. nfs服务器共享存储
  8. NLP之分词
  9. 【转】Java 内部类总结
  10. MySQL实战45讲学习笔记:第十三讲