私はandroid.butのsqlliteデータベースの情報に行きたいと思っています。 私のコードは次のとおりです。複数のクエリをアンドロイドで使用する
public Cursor getData() {
String myPath = DB_PATH + DB_NAME;
db = SQLiteDatabase.openDatabase(myPath, null,
SQLiteDatabase.OPEN_READONLY);
Cursor c = db.rawQuery("SELECT text,_id from tbl_laws where parent_id = 0",null);
// Note: Master is the one table in External db. Here we trying to access the records of table from external db.
Cursor c1 = db.rawQuery("SELECT text,_id from tbl_nokte where parent_id = 0",null);
// Note: Master is the one table in External db. Here we trying to access the records of table from external db.
return c;
return c1;
}
誰も私を助けることができますか?
サンプルデータと必要な出力を入力してください。 –