SyntaxFix
Write A Post
Hire A Developer
Questions
You can use like this:
String Query = "Select * from " + TABLE_NAME + " where " + Cust_id + " = " + cust_no; Cursor cursorr = db.rawQuery(Query, null); if(cursor.getCount() <= 0){ cursorr.close(); } cursor.close();