views:

28

answers:

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  A: 

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

a1ex07
Ah you're right, I just found out about it. Silly me.
Hamster