- 博客(1)
- 资源 (14)
- 问答 (2)
- 收藏
- 关注
原创 高效sql的注意事项
1.只返回需要的列,避免用select * from t12.加过滤条件限制返回的行数: select name, dep_name from t1 where age>303.避免笛卡尔乘积,select * from a,b--使用参数化查询,where col1=?,减少编译时间4.避免对查询条件计算,where salary*2>xx 改为salary > xx/25.尽...
2018-02-24 18:30:25 1508 1
TA创建的收藏夹 TA关注的收藏夹
TA关注的人