ON CONFLICT REPLACE in #sqlite deletes the conflicting row and inserts a new one. ...

Words
31
Reading
1 min
2y
Listen to this post
~1 min

... This means that the primary key will be changed unless you specify it directly. Use INSERT ... ON CONFLICT DO UPDATE to keep the old id.
#sql



ON CONFLICT REPLACE in #sqlite deletes the conflicting row and inse... | Ecency