I am having a problem using a string in a SQLite Update query.
This code is not working .
database.update(MySQLiteHelper.TABLE_NAME, values, MySQLiteHelper.COLUMN_TASKNAME + " = " + strName, null);
here strName is a string.
But this code works fine
database.update(MySQLiteHelper.TABLE_NAME, values, MySQLiteHelper.COLUMN_ID + " = " + id , null);
Here id is an integer.
What is the difference between them?