5
 conn = DriverManager.getConnection("jdbc:derby:mydatabase;create=true",props);

will this line make my DB get overwritten everytime i execute it? if it will how do i create the DB once and just use it ever since?

Ofek Ron
  • 8,354
  • 13
  • 55
  • 103

1 Answers1

5

What you are doing will work with Derby. It will create the database if it doesn't exist and do nothing if it already does exist.

Shawn D.
  • 7,895
  • 8
  • 35
  • 47