摘要: 优化建议 应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null可以在num上设置默认值0,确保表中num列没有null值,然后这样查询:select id from t whe 阅读全文
posted @ 2018-05-15 15:51 ice.ko 阅读(586) 评论(1) 推荐(2) 编辑