After the update, do not load the rows that are inserted into Mybatis3

I use mybatis 3 as a scroll frame along with spring mvc.

My query is how to find the number of rows affected after insert update deletion using mybatis 3?

+4
source share
1 answer

Mybatis insert / update / delete Methods always return an integer. This is the number of rows affected.

See http://mybatis.imtqy.com/mybatis-3/java-api.html#sqlSessions β†’ Ways to execute statements

+5
source

Source: https://habr.com/ru/post/1500690/


All Articles