着急,sql优化问题~求高手
以前一直写sql从来没做过优化,这次碰到了傻了,感觉没啥问题啊,但是人家说效率低,可以提高。
不知道怎么办,求助高手~
1.select a from table where b <> 'aaaa' (table without index)
2.select * from table where b like '%a%'
3.select name from person where birthday in (select birthday from table)
4.select * from table where a = 10
我就知道第二个应该用全文索引,第三个是不是用exist代替in啊
其他两个完全没概念,坐等高手指点~