On 12 Jul 2016, at 1:26pm, Clemens Ladisch <clem...@ladisch.de> 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
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to