2017-05-29 80 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'); 
相关问题