assuming query multiple conditions,
select AA.*,BB.* from AA left join BB on AA.key=BB.key
where AA.key='red' or AA.key='green' or AA.key='blue' or AA.key='pink'
compare to
select AA.*,BB.* from AA left join BB on AA.key=BB.key
where AA.key IN ['red','green',blue',pink']
In MYSQL, is any of the 2 options above faster than the other? I know using 'IN" is more pretty, but is it different in speed? (The tables have index on 'key')
I saw this post, but there is not reference about speed.