我正在从 sqlite 数据库中获取这样的查询:
String query = "select distinct(" +MessageCountConstant.To_USER + "), sum(" +MessageCountConstant.SEND_MESSAGE_COUNT + ") , "
+ "sum(" +MessageCountConstant.RECIEVE_MESSAGE_COUNT + ") from " +TABLE_NAME + " where " + MessageCountConstant.DATE + "= " +date
+ " AND "+ MessageCountConstant.DATE + " >= "+previousDate + " AND "+ MessageCountConstant.JID + " = '"+ Uname + "'"
;
SQLiteDatabase db = mOpenHelper.getReadableDatabase();
cursor = db.rawQuery(query, null);
现在谁能告诉我如何从光标中获取值。提前谢谢。