Skip to content

How to insert only when rows are not present #989

Answered by simolus3
amanv8060 asked this question in Q&A
Discussion options

You must be logged in to vote

In sqlite, primary keys are unique. So I'm not really sure how the update could affect more than one row here. Does it work if you remove the customConstraint() from uid? It shouldn't be necessary since uid is a primary key already.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@amanv8060
Comment options

Answer selected by amanv8060
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants