I have a table with column headings: | _id (long) | Name (String) | x (integer) | y (integer) |
I want to delete the row in the table that has Name myName.
Sure, that works, although I would recommend
dbHelper.delete(DATABASE_TABLE_2, KEY_NAME + "=?", new String[] { myName })
for safety reasons. That way, you can have special characters without breaking your query. Did this not work?