53

MySql常用30种SQL查询语句优化方法52227

 6 years ago
source link: https://juejin.im/post/5ab4a5ea518825556918ebc4
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1、应尽量避免在 where 子句中使用!=或<>操作符,否则将引擎放弃使用索引而进行全表扫描。 2、对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 3、应尽量避免在 where 子句中对字

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK