用MyBatis執行批量更新時,默認是返回-1、0、1
如果需要執行批量更新時返回受影響數,必須在連接字符串加上useAffectedRows=true
例如:jdbc:mysql://localhost:3306/searchengine?useAffectedRows=true
用MyBatis執行批量更新時,默認是返回-1、0、1
如果需要執行批量更新時返回受影響數,必須在連接字符串加上useAffectedRows=true
例如:jdbc:mysql://localhost:3306/searchengine?useAffectedRows=true
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。