Sqlite check for multiple values- Android -
i have requirement need check multiple values in sqlite clause. query goes this.
string sql = "select * _jobcard_table t1 " + " left join _customer_table t2 on (t1._custid=t2._custid) " + " left join _make_table t3 on (t1._job_make=t3._makeid) " + " left join _model_table t4 on (t1._jobmodel=t4._modid) " + " _addedby='" + globals.mid + "' , _jobestimatedate='"+curr+"' " + " group _jobregno order _custname";
here curr, arraylist of values, need check if date 1 of values in arraylist, return row, how can that? able check 1 value curr.get(0). not sure how check multiple values, please help!
use in keyword.
"_jobedtimatedate in (\"value1\", \"value2\", \"value3\")"
Comments
Post a Comment