UNIQUE constraint failed: sqlite database : android

前端 未结 10 2015
野的像风
野的像风 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 09:53

    I originally put the new unique constraint infant of the old one. Instead make sure you're current unique column is first:

    CREATE TABLE TEST (client_id TEXT unique, remote_id INT unique)
    

提交回复
热议问题