
mybatis
iteye_6322
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mybatis中使用in查询时的注意事项
1. 当查询的参数只有一个时 findByIds(List ids) 1.a 如果参数的类型是List, 则在使用时,collection属性要必须指定为 list复制代码 Select from jria where ID in ...原创 2015-12-10 19:05:31 · 185 阅读 · 0 评论 -
mybatis的#{}和${}的区别以及order by注入问题
前言略,直奔主题..#{}相当于jdbc中的preparedstatement${}是输出变量的值你可能说不明所以,不要紧我们看2段代码:String sql = "select * from admin_domain_location order by ?";PreparedStatement st = con.prepareStatement(sql);...原创 2015-12-11 14:33:47 · 150 阅读 · 0 评论