如果下面:
select * from table1 where c1 like '%%%wwe%%' and c2=5 ;
c2如果不是索引顺序怎样,如果c2是索引呢?
mysql对于这种会不会自己优化呢?
...全文
1216打赏收藏
关于检索顺序问题
select * from table1 where c1=4 and c2=5 ; mysql是先检索c1还是c2呢?如果c2有做索引c1没有做索引又是怎样 如果下面: select * from table1 where c1 like '%%%wwe%%' and c2=5 ; c2如果不是索引顺序怎样,如果c2是索引呢? mysql对于这种会不会自己优化呢?