This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes JDBC and the fly likes Open an existing db to write data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Open an existing db to write data" Watch "Open an existing db to write data" New topic
Author

Open an existing db to write data

Krithika Beri
Ranch Hand

Joined: Sep 11, 2012
Posts: 36
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

Joined: Sep 11, 2012
Posts: 36
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Open an existing db to write data
 
Similar Threads
Updating data to a new MS Access database
Where are SQLite3 databases created?
Problem developing app
how to increment suufix of this string?
JDBC ClassNotFoundException Weird Problem