首页 > 解决方案 > 哪个查询更快?为什么?

问题描述

我收到一个问题。

  1. select * form table whereIn(id, array(1,2,3,4))

  2. select * form table where(id=1) or where (id=2) or where (id=3)

哪个查询更快?以及为什么。谢谢阅读!

标签: mysqlquery-optimization

解决方案


推荐阅读