可以通过getInt(index)作为
cursor.getInt(1); // this is for example, you have to adjust index in your pre
游标还具有内置函数getCount()来返回行号,因此也可以这样:
// assuming your table has `id` column as primary key or unique key.Cursor dataCount = mDb.rawQuery("select id from " + DATAbase_JOURNAL_TABLE, null);dataCount.getCount();有关更多信息,请参见android
devloper的Cursor文档。



