Android:具有两个参数的Where子句在耻辱行中

时间:2013-10-03 08:58:30

标签: android android-contentprovider where-clause

我想从一行中获取带有两个参数的数据,并且只返回第一个。

这是我的代码:

String[] projection = { VehiculoContentProv.Consumos.ID_VEH_C, 
                        VehiculoContentProv.Consumos.ID_CALCULO_KL,
                        VehiculoContentProv.Consumos.ID_CALCULO_MG};

String selection =  "_idv =" + idV1 + " AND " + idV2;

 cursorLoader = new CursorLoader(this, VehiculoContentProv.CONTENT_URI_CONSUMO, 
                                         projection, 
                                         selection, null, null);

非常感谢

0 个答案:

没有答案