- 博客(4)
- 收藏
- 关注
原创 JDBC requires that the JdbcType must be specified for all nullable parameters
Caused by: org.apache.ibatis.type.TypeException: JDBC requires that the JdbcType must be specified for all nullable parameters. at org.apache.ibatis.type.BaseTypeHandler.setParameter(BaseTypeHandl...
2019-11-25 11:06:11
369
原创 Mybatis缓存
一级缓存首先做一个测试,创建一个mapper配置文件和mapper接口,我这里用了最简单的查询来演示。 namespace="cn.elinzhou.mybatisTest.mapper.UserMapper"> select id="findUsers" resultType="cn.elinzhou.mybatisTest.pojo.User"> SELE
2017-09-03 19:34:11
201
原创 不可重复读和幻读的区别
当然, 从总的结果来看, 似乎两者都表现为两次读取的结果不一致.但如果你从控制的角度来看, 两者的区别就比较大对于前者, 只需要锁住满足条件的记录对于后者, 要锁住满足条件及其相近的记录-----------------------------------------------------------我这么理解是否可以?避免不可重复读需要锁
2017-09-03 19:27:24
232
原创 oracle
1.对查询进行优化,要尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如:select id from t where num is null最好不要给数据库留NULL,尽可能的使用 NOT NULL填充数据库.备注、描述、评论之
2017-07-28 13:22:39
173
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人