0
我想檢索遊標的內容。如何從遊標檢索數據
光標的代碼如下:
cursor = helper.getReadableDatabase().rawQuery("select _id from x where Name = ?", new String[] {str2});
現在,它說無處不在我與的getString和getColumnIndex工作。
但是,我如何知道列的名稱,所以,給getColumnIndex參數?
我只想在光標中輸入第一個(在這種情況下)。 或者是本例中「_id」列的名稱?
只是在此刻嘗試。 – newnewbie 2014-09-25 21:41:50
謝謝。我只需要一個真實的例子 – newnewbie 2014-09-25 21:45:50