1

Basically, I want to insert if a given entry (by its primary key id) doesn't exist, and otherwise update if it does. What might be the best way to do this?

1 Answer 1

1

Does sqllite not have REPLACE command ? Or ON CONFLICT REPLACE ?

Sign up to request clarification or add additional context in comments.

1 Comment

Note that REPLACE resets any fields you're not explicitly setting in your query. Sadly there is no ON CONFLICT UPDATE...

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.