配置MyBatis批量更新返回受影响数

用MyBatis执行批量更新时,默认是返回-1、0、1

如果需要执行批量更新时返回受影响数,必须在连接字符串加上useAffectedRows=true

猜你喜欢

转载自blog.csdn.net/xiaowanzi_zj/article/details/128694265
今日推荐