1
我想在java中想要的位置編程通緝的數據庫。如何設置想要的位置與德比在java想要的位置
public class DerbyCreateTable {
public static void main(String [] args) {
Connection con = null;
try {
con = DriverManager.getConnection(
"jdbc:derby://localhost/TestDB");
// Creating a database table
Statement sta = con.createStatement();
int count = sta.executeUpdate(
"CREATE TABLE HY_Address (ID INT, StreetName VARCHAR(20),"
+ " City VARCHAR(20))");
System.out.println("Table created.");
sta.close();
con.close();
} catch (Exception e) {
System.err.println("Exception: "+e.getMessage());
}
}
}
但是我該如何設置在哪裏創建它以及如何創建我想要的新位置? 謝謝
設置爲將DB服務器安裝到特定位置? – asgs 2011-05-03 11:53:10