SQLite - UPDATE syntax error
SQLite - UPDATE syntax error
db.execSQL("UPDATE" +JournalContract.JournalEntry.TABLE_NAME +"SET"+ JournalContract.JournalEntry.COLUMN_DATE + =
date +JournalContract.JournalEntry.COLUMN_TITLE + = title + JournalContract.JournalEntry.COLUMN_CONTENT+ =content
+ JournalContract.JournalEntry.COLUMN_HOUR+ = time +" WHERE _ID='" + id + "'");
Please i would like someone to verify the syntax.
UPDATE
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
UPDATE
should have a space after it also other keywords . Apart from that why don't you just log the query to check .– ADM
Jul 1 at 15:42