updateByPrimaryKey与updateByPrimaryKeySelective的区别

updateByPrimaryKey更新的时候不会对字段进行null判断.如果为null,这个字段就被更新为null

 

updateByPrimaryKeySelective更新的时候会对字段进行null判断,如果为null,就不更新这个字段

 

同理insert与insertSelective

 

posted on 2018-11-29 16:17  supress_Elon_Musk  阅读(614)  评论(0编辑  收藏  举报