Why not use index
Posted by:
zhang peng
Date: November 08, 2015 11:14PM
I write follow sql:
select * from A t1 left join B t2 on t1.mid=t2.id or t1.sid=t2.id
mid is primary key of A,both sid and id have index, but why mysql not use index
Subject
Views
Written By
Posted
Why not use index
1788
November 08, 2015 11:14PM
900
November 09, 2015 11:42AM
907
November 11, 2015 12:17AM
958
November 10, 2015 10:35AM
1094
November 11, 2015 12:15AM
991
November 11, 2015 03:40AM
1251
November 11, 2015 07:29PM
878
November 11, 2015 11:00PM
978
November 12, 2015 01:48AM
955
November 16, 2015 12:17AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.