0
在sqLite中,我有一個活動插入到我的數據庫的表中的3個值。 我需要從數據庫中複製這3個值,從另一個活動...從表中第一個值的retreival是可能的..我不能retreive其餘的2個值...如何定義遊標對象一樣???多個數據的Sqlite數據庫復位
myDB = MyService.this.openOrCreateDatabase("antitheft", MODE_PRIVATE, null);
Cursor cursor1 = myDB.query("SimSerial", null, null, null, null, null, null);
cursor1.moveToLast();
String ss1 = cursor1.getString(cursor1.getColumnIndex("simno"));
cursor2.moveToFirst();
String num1 = cursor2.getString(cursor2.getColumnIndex("secure"));
你有一個表或不同的表中的所有值? – 2011-12-29 12:37:27
值在同一個表中.... – subrussn90 2011-12-29 12:41:08