![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
chenyi84
这个作者很懒,什么都没留下…
展开
-
Oracle + mybatis 调用存储过程遇到的问题
我程序预期是调用存储过程执行Update操作,表名需要传参数拼 最终版代码: mapping.xml部分代码: <select id="updateBrandAByBrand" statementType="STATEMENT"> <![CDATA[ {call BRAND_${_parameter}('${_parameter}')}]]&g...原创 2015-02-06 18:20:12 · 505 阅读 · 0 评论 -
mybatis insert操作 返回主键
问题:最近遇到个问题insert操作我需要返回主键ID,该数据库对应表主键为自增 解决: <insert id="insertSelective" parameterType="com.esint.model.OldPerson" useGeneratedKeys="true" keyProperty="colId"> insert into table..... <...原创 2015-03-30 14:19:02 · 703 阅读 · 0 评论 -
spring+mybatis实现csv批量上传
简单的一个小例子而已,测试了下9W多条数据导入如果不做批量插入很费时,后改为批量插入在6秒左右: 上传jsp页面: <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//D...原创 2015-10-16 10:11:16 · 728 阅读 · 0 评论