I am trying to delete all rows in an SQLite Database where the Id = null
Here is my code :-
public void deleteNullSongs() {
SQLiteDatabase db = this.getReadableDatabase();
String sql = String.format("ID=%s", null);
db.delete(TABLE_NAME, sql, null);
}
But it does not delete any vlues can't work out what is wrong ?
I have tried different ways of doing this but when i print the contents of the database the rows are still there