11

We're using MyBatis 3.0.6 to work with our database.

The MyBatis generator will automatically generate 4 updateByXYZ() methods. Each of these methods returns an int.

I've been digging all over but can't find any documentation telling me what possible values are returned from these methods. Anybody know?

Kricket
  • 4,049
  • 8
  • 33
  • 46
  • either (1) the row count for SQL Data Manipulation Language (DML) statements or (2) 0 for SQL statements that return nothing – Ruelos Joel Jan 07 '16 at 10:48

1 Answers1

23

It's the number of records affected(updated or deleted)

xfx
  • 1,918
  • 1
  • 19
  • 25