mybatis动态sql使用方法(1)
来源:互联网 发布:台北代表处 知乎 编辑:程序博客网 时间:2024/06/05 15:49
<insert id="insertAuthor" useGeneratedKeys="true" keyProperty="id"> insert into Author (username, password, email, bio) values <foreach item="item" collection="list" separator=","> (#{item.username}, #{item.password}, #{item.email}, #{item.bio}) </foreach></insert>
mybatis的动态sql语句。
最终的sql语句是(如果集合的个数只有2个)
insert into Author (username,password,email,bio) values (?,?,?,?),(?,?,?,?);
阅读全文
0 0
- mybatis动态sql使用方法(1)
- MyBatis动态SQL(1)
- mybatis动态SQL语句
- MyBatis动态SQL
- MyBatis 动态SQL
- Mybatis 动态SQL
- MyBatis动态SQL
- MyBatis动态SQL完整版
- mybatis动态sql
- mybatis动态SQL语句
- mybatis动态SQL语句
- MyBatis的动态SQL
- MyBatis动态SQL
- MyBatis动态SQL
- MyBatis 动态SQL语句
- MyBatis动态SQL
- Mybatis组建动态SQL
- MyBatis 动态sql
- 数据对接—kettle使用知识12
- sqlserver 完整备份、差异备份、日志备份与恢复脚本
- 使JAVA堆栈溢出的方法
- Ubuntu 下安装 Lamp环境
- Mysql语句优化工具
- mybatis动态sql使用方法(1)
- bash编程之: Grep文本搜索
- Linux用户管理
- 几种常见的排序思想
- 文件权限
- ZooKeeper shell操作
- retrofit的基本用法
- [Linux API]linux 工作队列workqueue
- Java transient关键字