Veritabanında güncelleme için yazdığım komut hata veriyor.Girdiğim komut ;
"update notes set noteHead="+modelUpdate.getNoteHead()+",note="+modelUpdate.getNote()+",noteHistory="+
modelUpdate.getNoteHistory()+" where noteID="+position
Değişkensiz hali (hata çıktısındaki) ;
update notes set noteHead=asdf,note=adsss,noteHistory=01-03-2021 21:47 where noteID =50
maviler kolonlarım.
Hata çıktısı ;
android.database.sqlite.SQLiteException: near "21": syntax error (code 1 SQLITE_ERROR[1]):
sqlite log ;
(1) near "21": syntax error
"update notes set noteHead="+modelUpdate.getNoteHead()+",note="+modelUpdate.getNote()+",noteHistory="+
modelUpdate.getNoteHistory()+" where noteID="+position
Değişkensiz hali (hata çıktısındaki) ;
update notes set noteHead=asdf,note=adsss,noteHistory=01-03-2021 21:47 where noteID =50
maviler kolonlarım.
Hata çıktısı ;
android.database.sqlite.SQLiteException: near "21": syntax error (code 1 SQLITE_ERROR[1]):
sqlite log ;
(1) near "21": syntax error