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 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



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.

Popular posts from this blog

Rothschild family

Cinema of Italy