UNIQUE constraint failed: sqlite database : android

前端 未结 10 2016
野的像风
野的像风 2020-12-05 09:34

I am trying to insert values in table. But there is only one value inserted. I am getting an error in log cat when I am trying to insert new values.

Log cat shows :

10条回答
  •  春和景丽
    2020-12-05 10:12

    Try checking if the ID is already existed. If true, do not insert, because you already have the row with this ID.

提交回复
热议问题