Archive for 3月 15th, 2012

  1. Hello, H2 Database World!

    Posted on 3月 15th, 2012 by cx20

    H2 Database

    H2 Database は速さに定評のある Java 製の DBMS である。組み込みモードとサーバーモードがある。名前の由来は「Hypersonic2」から。

    ソースコード

    SELECT 'Hello, H2 Database World!' AS Message;

    実行方法

    $ java -cp h2*.jar org.h2.tools.RunScript -url "jdbc:h2:~/hello" -script "hello.sql" -showResults

    実行結果

    SELECT 'Hello, H2 Database World!' AS Message;
    --> Hello, H2 Database World!
    ;