Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Open an existing db to write data

 
Krithika Beri
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to open the existing database file and write the data into it . I am using the sqlite database.
Here is the snippet:

i am asking if you want to write the data into existing db, if there is existing db then res=1 and if it is not there res=0
 
Krithika Beri
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry if there is existing db then res=0 if it is not there then it is 1
if i use the existing database it is saying that file is encrypted or it is not a database
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic