We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我想将数据库某个字段更新为null。类似这样: Student student = new Student(); student.setId(1); student.setAge(null); studentMapper.updateByPrimaryKeySelective(student); 我只想更新age为null,其余字段不变。能支持吗?
The text was updated successfully, but these errors were encountered:
用这个方法:https://github.com/abel533/Mapper/blob/master/extra/src/main/java/tk/mybatis/mapper/additional/update/force/UpdateByPrimaryKeySelectiveForceMapper.java
Sorry, something went wrong.
No branches or pull requests
我想将数据库某个字段更新为null。类似这样:
Student student = new Student();
student.setId(1);
student.setAge(null);
studentMapper.updateByPrimaryKeySelective(student);
我只想更新age为null,其余字段不变。能支持吗?
The text was updated successfully, but these errors were encountered: