日期:2014-05-16  浏览次数:20372 次

hsqldb起步

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


2.运行 hsqldb.jar


3.

?

4.先关闭后运行


运行:

?

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);
	}

}