is the below mentioned code correct
public boolean checkRecipe(CharSequence recipename) throws SQLException
{
Cursor checkRecursor=rDb.query(true, DATABASE_TABLE, new String[]{KEY_TITLE},
KEY_TITLE+"="+recipename, null, null, null, null, null);
if(checkRecursor!=null)
return true;
else
return false;
}
I'm trying to check whether a given entry is present in the table or not.