感谢大佬:https://www.cnblogs.com/flintlovesam/p/5241866.html
(https://www.cnblogs.com/flintlovesam/p/5241866.html)
SQLite错误总结
android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed错误原因 情况1:你定义的字段为 not null而插入时对应的字段却没值。 情况2:你定义的字段设定PRIMARY,而插入的值已经在表中存在。 情况3:在进行修改的时候set的id与where的id不同。 2.列命名规则 情况1:保留词不应作为列明,如group、index