In SQLite, when you try to insert multiple rows into a table, and any of those rows violates a constraint on that table, the operation will fail.
This is to be expected, after all, that’s what the constraint is for.
But what if you just want to ignore any rows that violate constraints? In other words, if a row violates a constraint, you want SQLite to skip that row, then carry on processing the next row, and so on.
Fortunately, there’s an easy way to do this in SQLite.
Continue reading