Home > Database > Mysql Tutorial > MyBatis中对ListObject 对象List的批处理插入操作

MyBatis中对ListObject 对象List的批处理插入操作

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 17:35:29
Original
1595 people have browsed it

MyBatis中对Listlt;Objectgt; 对象List的批处理插入操作:首先需要定义对象的lt;resultMap type=com.travelsky.domain.Order

MyBatis中对List 对象List的批处理插入操作:

首先需要定义对象的

然后:

 

  insert into
  ordersdish(id,ordersId,dishId)
  values
     separator=",">
   (#{item.id,jdbcType=VARCHAR},#{item.orderId,jdbcType=BIGINT},#{item.dishId,jdbcType=INTEGER})
 
 

相关阅读:MyBatis快速入门教程

linux

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Mybatis mapping problem
From 1970-01-01 08:00:00
0
0
0
java - Mybatis related query
From 1970-01-01 08:00:00
0
0
0
REGEXP in mybatis
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template