私はsq-lite dbにデータを挿入する方法を持っています
public long InsertDetails(int Id,String BatchName,double Weight,
double Yield)
{
ContentValues InsertContentValues = AssesmentInsertValues(Id,BatchName,Weight,Yield);
return this.data.insert("tb_LabAssessment", null, InsertContentValues);
}
私のメインクラスから値をパラメーターとして上記の関数に渡します。場合によっては、重みと収量をnull値として渡したいと思います。
String batchname;
double weight;
double Yield;
dbAdapter.InsertAssesmentDetails(objClsProduct.getId(),batchname,weight,Yield)
ここで weight と yield の値を null として渡すにはどうすればよいですか。