前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家。点击跳转到网站:https://www.captainai.net/dongkelun
前言
记录自己在工作开发中遇到的SQL优化问题
1、避免用in 和 not in
解决方案:
- 用exists 和 not exists代替
- 用join代替
not exists示例
not in:
select stepId,province_code,polyline from route_step where stepId not in