1
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';
你看到的语法错误?
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';
你看到的语法错误?
取出WHERE子句
insert or replace into taeglich VALUES ('29.4.2017', '10 ml f\n', '0.0', '0.0', '0.0');
份额完整的logcat –
的可能的复制[SQLite的插入或更换其中(https://stackoverflow.com/questions/10573215/sqlite-insert-or-replace -哪里) –