波神

导航

随笔分类 -  myBatis

myBatis中if test 字符串注意事项
摘要:错误写法: 正确写法: 或 阅读全文

posted @ 2018-12-19 15:34 波神 阅读(389) 评论(0) 推荐(0)

mybatis标签
摘要:https://blog.csdn.net/weixin_40950778/article/details/78655288 阅读全文

posted @ 2018-12-19 15:22 波神 阅读(169) 评论(0) 推荐(0)

Mybatis之动态构建SQL语句(转)
摘要:https://www.cnblogs.com/zhangminghui/p/4903351.html 阅读全文

posted @ 2018-11-23 14:49 波神 阅读(299) 评论(0) 推荐(0)

mysql mybatis useGeneratedKeys Field 'ID' doesn't have a default value的问题
摘要:原因是:创建表时没有让id自动增长: 阅读全文

posted @ 2018-08-13 20:07 波神 阅读(803) 评论(1) 推荐(1)

mybatis LIKE
摘要:扩展:mysql like查询,_和%查询无效的问题 1、表中有三条数据,其中NAME可以有特殊字符 2、LIKE查询,查询字符串为_和% 可以看到,查询结果并没有只查出来符合的数据,是将全部数据都查出来了,因为在like查询中,使用%和_来代表任意多个字符和一个字符 3、解决办法,可以使用esca 阅读全文

posted @ 2018-08-10 11:37 波神 阅读(376) 评论(0) 推荐(0)

mysql的myBatis,主键自增设置
摘要:方法一: 方法二: 阅读全文

posted @ 2018-07-09 17:51 波神 阅读(445) 评论(0) 推荐(0)

基于注解的mybatis(转)
摘要:http://wwww.iteye.com/blog/1235996 阅读全文

posted @ 2018-06-08 13:45 波神 阅读(155) 评论(0) 推荐(0)