2017-05-29 81 views
1

我得到SQLiteException語法錯誤不清楚

android.database.sqlite.SQLiteException:近 「WHERE」:語法錯誤(代碼1):在編譯:insert or replace into taeglich (datum, a, b, c, d) values ('29.4.2017', '10 ml f\n', '0.0', '0.0', '0.0') WHERE datum = '29.4.2017';

你看到的語法錯誤?

+0

份額完整的logcat –

+0

的可能的複製[SQLite的插入或更換其中(https://stackoverflow.com/questions/10573215/sqlite-insert-or-replace -哪裏) –

回答

1

取出WHERE子句

insert or replace into taeglich VALUES ('29.4.2017', '10 ml f\n', '0.0', '0.0', '0.0'); 
相關問題