看文档说 insertSelective 不插入为 null 的项,但就算在 insert 里面插入,为 null 的项不也是不会插入吗? 如果意思是 insertSelective 为 null 的项会用自动生成的值,那难道 insert 插入时 null 项不会用自动生成的值?
class User{
Integer id;
String name;
String address;
}
那么insert(User{null,"Jack",null}和insertSelective(User{null,"Jack",null}有什么区别?