摘要: 需求:使用批量插入后,需要insert之后的每一条记录的ID 注意:Mybatis3.3.1的版本以后支持批量插入后返回主键ID 示例: domin.java: mapper.java: mapper.xml: 阅读全文
posted @ 2018-07-24 16:08 一问三不知。 阅读(1828) 评论(0) 推荐(0) 编辑
摘要: MySQL REPLACE语句介绍 MySQL的REPLACE语句是一个MySQL扩展于SQL标准的语句。 官方定义:REPLACE works exactly like INSERT, except that if an old row in the table has the same valu 阅读全文
posted @ 2018-07-24 15:55 一问三不知。 阅读(269) 评论(0) 推荐(0) 编辑