Automatically create table structure in an membory based derby database (netbeans)
I have a simple program I am working on, right now I am working in netbeans and using the derby database, in memory, and have it set to create the database if it doesn't exist.
Connection con = DriverManager.getConnection("jdbc:derby://localhost开发者_如何转开发:1527/memory:APP;create=true", "APP", "APP");
My question is... while it creates the database, it does not create the table structure.. how do I get the program to create that as well?
Look at this link it has how to create a table programatically from Java.
This link tells you how to populate the table with Data.
精彩评论