The page https://sqlite.org/lang_UPSERT.html includes the following
text:

    Some examples will help illustrate the difference:

        CREATE TABLE vocabulary(word TEXT PRIMARY KEY, count INT DEFAULT 1);
        INSERT INTO vocabulary(word) VALUES('jovial')
          ON CONFLICT(word) DO UPDATE SET count=count+1;

    The upsert above inserts the new vocabulary word "jovial" if that
    word is not already in the dictionary, or if it is already in the
    dictionary, it increments the counter. The "count+1" expression
    could also be written as "vocabulary.count". ...

Shouldn't that actually be written as "vocabulary.count+1"?

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

Reply via email to