insert into table_name (id, nam_mybatis ">
赞
踩
首先看看常规的Mybatis循环插入List集合中的数据的持久层代码,看看能发现哪些东西;
<insert id="aaa" parameterType="org.java.entity.userEntity">
insert into table_name (id, name, gender, age, addr)
values
<foreach collection="list" item="item" separator=",">
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。