摘要: 一、引擎将会放弃使用索引而进行全表扫描的情况 1..在 where 子句中对字段进行 null 值判断 select id from t where num is null 可以在num上设置默认值0,确保表中num列没有null值,然后这样查询: select id from t where nu 阅读全文
posted @ 2020-05-25 21:00 秋_叶 阅读(144) 评论(0) 推荐(0) 编辑