Я хочу перейти к некоторой информации в sqlite базе данных в android.but я не знаю, что. мой код:используя несколько запросов в курсоре в android
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;
}
кто может мне помочь?
Просьба предоставить некоторые образцы данных и желаемый результат. –