Try to use this
Cursor cursor;
String[] columns = {"name", "age", "color"};
cursor = sqLiteDatabase.query("profile_table", columns, "name=?", new String[]{"Sam"}, null, null, null);
if (cursor != null) {
cursor.moveToFirst();
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…