![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SQL
文章平均质量分 69
zy_9506
这个作者很懒,什么都没留下…
展开
-
SQL语句的优化技巧
where 字句中 避免试用 is null 或 not null 判断,避免使用!= 或 <> 判断,避免用or连接条件(可以用union all 联合查询),少用in或not in(对于连续的区间可以用 between代替),使用like 通配符 尽量用 "xx%" 匹配,不要在 条件字段上做运算操作或者函数操作,如 select * from user u where u.age...原创 2019-06-05 21:34:53 · 255 阅读 · 0 评论 -
mybatis批量插入数据到ORACLE
一、mybatis批量插入数据到Oracle中的两种方式: 第一种: <insert id="addList" parameterType="java.util.List" useGeneratedKeys="false"> INSERT ALL <foreach item="item" index="index" collection="list"&...原创 2019-06-05 21:37:46 · 352 阅读 · 0 评论