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?

Juan Mellado
  • 14,973
  • 5
  • 47
  • 54
Hamster
  • 557
  • 2
  • 7
  • 12

1 Answers1

1

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

a1ex07
  • 36,826
  • 12
  • 90
  • 103
  • Note that `REPLACE` resets any fields you're not explicitly setting in your query. Sadly there is no `ON CONFLICT UPDATE`... – Pascal Nov 27 '10 at 11:22