
Mybatis
raymond27
程序员 猿 园 元
展开
-
MyBatis中批量插入、删除、更新
批量插入 方法一: SELECT CURRENT_TIMESTAMP() insert into kangaiduoyaodian ( depart1, depart2, product_name, generic_name, img, product_specification, unit, approval_certific转载 2017-01-14 10:12:54 · 1410 阅读 · 0 评论 -
MyBatis获取插入记录的自增长字段值
第一步: 在Mybatis Mapper文件中添加属性“useGeneratedKeys”和“keyProperty”,其中keyProperty是Java对象的属性名! insert into spares(spares_id,spares_name,spares_type_id,spares_spec) values(#{id},#{name}转载 2017-01-14 09:28:20 · 400 阅读 · 0 评论