4
I have the following queries in Mysql:
1º: Using multiple devices OR
SELECT SUM(qtd)
FROM
produtos
WHERE
qtd > 10
and (status = '0' or status = '4' or status = '7')
2º: Using IN
SELECT SUM(qtd)
FROM
produtos
WHERE
qtd > 10
and status IN (0,4,7)
Which query will have better performance? Both will result me the same data or has difference?
The following: (requires translation) https://stackoverflow.com/questions/782915/mysql-or-vs-in-performance
– Don't Panic
Very good, thank you.
– Hugo Borges