String sql = "SELECT * FROM table1"; Cursor cs = null; cs = mDB.rawQuery(sql, null); if(cs.getCount() > 0){ cs.moveToFirst(); do{ String str = cs.getString(cs.getColumnIndex("attr1"));
}while(cs.moveToNext());
}
String sql = "SELECT * FROM table1"; Cursor cs = null; cs = mDB.rawQuery(sql, null); if(cs.getCount() > 0){ cs.moveToFirst(); do{ String str = cs.getString(cs.getColumnIndex("attr1"));
}while(cs.moveToNext());
}
댓글
댓글 쓰기