Home > Back-end >  Mybatis execute SQL (insert, update, delete) return values
Mybatis execute SQL (insert, update, delete) return values

Time:11-22

Database: the Mysql

In the process of use mybatis to doubt execute SQL return values, conveniently record,

Conclusion:
 
Insert: insert n records, return line number n, (n> , n=1 0 means that the actual failure of insert)

Update: update n records, return line number n, (n>=0)

Delete: delete n records, return line number n, (n>=0)

CodePudding user response:

https://www.cnblogs.com/ZTPX/p/10552512.html

CodePudding user response:

Then can I have your points: