之间是否有任何性能差异
SELECT * FROM table WHERE id IN (42);
和
SELECT * FROM table WHERE id = 42;
?
问题是只提供一个值。对我来说,自然的假设是优化器将它们视为平等并在获取数据时执行相同的优化。但这是正确的吗?
mysql performance query-performance
mysql ×1
performance ×1
query-performance ×1