收录日期:2019/06/20 01:23:11 时间:2010-06-22 20:28:46 标签:java,netbeans,derby

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.