Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error code 19: constraint failed

 
Sherif Shehab
Ranch Hand
Posts: 487
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i'm trying to insert some data in the Android sqlite it was inserted successfully but this error occurs :

i cant understand what is for !! any clues ?

 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you create a database, you can specify that values in certain columns must meet certain conditions. If those conditions are not met, then you get a constraint violation error. Often this means that two records have the same key value (unique key values are often implied constraints). Check the data you are inserted to see of two records have the same key.
 
Sherif Shehab
Ranch Hand
Posts: 487
Android Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Peter for clarification ....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic