On 12 Jul 2016, at 1:26pm, Clemens Ladisch <[email protected]> wrote:

> An INSERT OR UPDATE (or MERGE) statement does not exist in SQLite.
> 
> Just try the UPDATE, and if the number of affected rows is zero, do the
> INSERT.

I prefer to do

INSERT OR IGNORE ...
UPDATE ...

That way you do not have to count the affected rows.

Simon.
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to