I have a column name as “source” in my table.
I m trying to delete all the entries which has source = testing.
I am doing it with the following code
DB.delete(Dbhelper.getTestingTableName(), “source=” + testing, null);
but it always gives error :
no such column: testing: , while compiling: DELETE FROM TestingTable WHERE source=testing
But when I use the same command “DELETE FROM TestingTable WHERE source=testing” through abd sqlite3 it works perfectly… any reason???
You should use it in following way: