开始写的代码是这样子的:
private void findData(){ sqLiteDatabase=dbHelper.getWritableDatabase(); Cursor cursor = sqLiteDatabase.rawQuery("select id as _id,name from searchHisTab", null); Log.d("TAG","查找表中的数据"); Log.d(TAG,"cursor的数据为:"+cursor.getCount()); cursor.moveToFirst(); do{ String id= cursor.getString(cursor.getColumnIndex("id")); Log.i("TAG","表sear |