mysql - 哪个查询更快?为什么?
问题描述
我收到一个问题。
select * form table whereIn(id, array(1,2,3,4))
select * form table where(id=1) or where (id=2) or where (id=3)
哪个查询更快?以及为什么。谢谢阅读!
解决方案
推荐阅读
- java - 未调用 Spring Boot Servlet 过滤器
- c++ - 如何公开匿名工会的单个成员?
- ruby-on-rails - 尽管控制台显示参数正确传递并且控制器正确调用,Rails 参数传递问题
- javascript - 在Angular中将参数传递给css类
- python - 销售税和账单(第 2 部分)(python3)
- git - git log 包含另一个分支的提交,如何在分支之间分离提交
- r - 使用 R 中的 gt 包更改存根行组中的缩进
- rest - Google Drive API Resumable Upload PUT 请求失败。状态码:400。消息:未找到
- css - 纵向查看时,英雄图像不是全高
- android - 设置中的字体大小使 TextView 中的文本不可读且重叠