神树月亮

导航

 

2021年4月11日

摘要: in 和 not in 也要慎用,否则会导致全表扫描,如: select id from t where num in(1,2,3) 对于连续的数值,能用 between 就不要用 in 了: select id from t where num between 1 and 3 如果在 where 阅读全文
posted @ 2021-04-11 20:04 神树月亮 阅读(99) 评论(0) 推荐(0)