String selectQuery = "SELECT accno from AccountMaster where pan = " + pan; Cursor cursor = db.rawQuery(selectQuery, null); int accno = 0; if(cursor.moveToFirst()) accno=cursor.getInt(0);
Aucun commentaire:
Enregistrer un commentaire