why is a multi-column index not used for a sql with OR condition? – Mysql
I was reading MySQL document when I found that it said SELECT * FROM test WHERE last_name='Jones' AND first_name='John'; will use index, while SELECT * FROM test WHERE last_name='Jones' OR first_name='John'; will not. Could somebody tell me the reason why…