getting values from sqlite using group by null pointer

前端 未结 1 1448
我在风中等你
我在风中等你 2021-01-23 13:21

I have a table in that I have some duplicate record now I am getting the record without excluding duplicate records. I want to get all record excluding duplicate, and from dupli

相关标签:
1条回答
  • 2021-01-23 14:11
    I done using this query. taken help from above commented link. ` public Cursor fetchImage() {
                   Cursor icursor = database.query(true, DatabaseHelper.TABLE_NOTE_IMAGE, new String[]
                            {DatabaseHelper.TEMP_IMG_ID, DatabaseHelper.NOTE_IMG_PATH_THUMB},
                    null, null, DatabaseHelper.TEMP_IMG_ID, null, null, null);
            if (icursor != null) {
                icursor.moveToNext();
            }
            return icursor;
        }`
    
    0 讨论(0)
提交回复
热议问题