On 16 Mar 2018, at 11:35, Simon Slavin wrote:

> You can use INSERT OR IGNORE for this.  First, do an INSERT OR IGNORE command 
> which will add a dummy entry, with the right key, if one doesn't already 
> exist.
> …

Hi, yes, I thought about this too but really don’t like it and this assumes 
that you don’t use AUTOINCREMENT on a table otherwise this strategy will fail.

Viele Grüsse.

-- 

Robert M. Münch, CEO
M: +41 79 65 11 49 6

Saphirion AG
smarter | better | faster

http://www.saphirion.com
http://www.nlpp.ch

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to