Hi I'm trying to create an address book type program in Java using SQLite. For now, all it should do is ask the user for a contact name and telephone number to add to the table.
I haven't started the coding but the thing I cannot get my head around is the table creations. Suppose I write a program that
- Connects to a database
- Creates a table
- Asks the user for details about adding contact data (to the table).
I compile it once without errors. But then every time I run the program it will create a new table. The only thing I can think of is that database and table creation is done outside of the Java program.