0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

hsqldbのjar起動メモ

Posted at

ダウンロード・起動

  1. Download Latest Versionをクリックしてダウンロード
  2. 適当な場所に解凍
  3. コマンドプロンプトを開いて解凍したディレクトリに移動
  4. ↓を実行
java -classpath lib/hsqldb.jar org.hsqldb.server.Server --database.0
file:hsqldb/demodb --dbname.0 testdb

実行結果

[Server@4ee285c6]: Startup sequence initiated from main() method
[Server@4ee285c6]: Could not load properties from file
[Server@4ee285c6]: Using cli/default properties only
[Server@4ee285c6]: Initiating startup sequence...
[Server@4ee285c6]: Server socket opened successfully in 7 ms.
[Server@4ee285c6]: Database [index=0, id=0, db=file:testDB, alias=testdb] opened successfully in 405 ms.
[Server@4ee285c6]: Startup sequence completed in 441 ms.
[Server@4ee285c6]: 2023-06-25 09:59:28.321 HSQLDB server 2.7.2 is online on port 9001
[Server@4ee285c6]: To close normally, connect and execute SHUTDOWN SQL
[Server@4ee285c6]: From command line, use [Ctrl]+[C] to abort abruptly

マネージャーを開く

  1. binディレクトリのrunManagerSwing.batを実行
  2. 下記のように設定してok
    image.png

適当なテーブル作成

  1. 下記SQLを貼り付けてExecuteSQLを押す
CREATE TABLE tutorials_tbl (
   id INT NOT NULL,
   title VARCHAR(50) NOT NULL,
   author VARCHAR(20) NOT NULL,
   submission_date DATE,
   PRIMARY KEY (id) 
);

結果

image.png

CRUDのサンプル

Command → TestScript をクリック
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?