开发者

Automatically create table structure in an membory based derby database (netbeans)

开发者 https://www.devze.com 2023-01-04 04:39 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消