Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我将 mybatis 3 与 spring mvc 一起用作持久性框架。
我的查询是如何使用 mybatis 3 查找插入、更新删除后受影响的行数?
Mybatis 的 insert/update/delete 方法总是会返回一个整数。这是受影响的行数。
见http://mybatis.github.io/mybatis-3/java-api.html#sqlSessions -> 语句执行方法