hsqldb起步

1.复制 hsqldb.jar 到 "d:\db"


2.运行 hsqldb.jar


3.
hsqldb起步

 

4.先关闭后运行


hsqldb起步

运行:

 

public class TestHsqldb{
	public static void main(String[] args) throws SQLException {
		testConnection();
	}

	public static void testConnection() throws SQLException {
		String path = "d:/db/db_unionhelper";
		Connection c = DriverManager.getConnection("jdbc:hsqldb:file:" + path, "root", "root");
		System.out.println("Connection:"+c);
	}

}

你可能感兴趣的:(C++,c,jdbc,C#,HSQLDB)