1

I get

android.database.sqlite.SQLiteException: near "WHERE": syntax error (code 1): , while compiling: 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';

Do you see the syntax error?

2
  • share complete logcat Commented May 29, 2017 at 16:24
  • Possible duplicate of SQLite Insert or Replace Where Commented May 29, 2017 at 16:29

1 Answer 1

1

Remove the WHERE clauses

insert or replace into taeglich VALUES ('29.4.2017', '10 ml f\n', '0.0', '0.0', '0.0');
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.