![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MyBatis
呆呆土豆
这个作者很懒,什么都没留下…
展开
-
MyBatis中的批量插入、删除(MySql、Oracle)
批量插入 批量插入mysql和oracle的sql会有些差别,要注意!mysql: <insert id="batchInsert" parameterType="java.util.List"> insert into student (name, password) values <foreach collection="list" item="item" in原创 2015-11-19 14:18:21 · 687 阅读 · 0 评论 -
MyBatis 参数类型为String时常见问题解决方法
1. 参数为String时的插值问题假设有下面一Dao接口方法public Account findByAccountType (String type)throws DaoException;对应的Mapper.xml<select id="findByAccountType " parameterType="string" resultType="account"> select *原创 2015-12-03 15:31:34 · 7307 阅读 · 1 评论