Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これは単純なはずですが、まだ答えを見つけていません。
タイプ A がまだ存在しない場合にのみ作成したい、またはタイプが既に存在する場合は削除して、HSQL データベースの起動時に再作成したい。
これで、drop コマンドと create コマンドがわかりました。
CREATE TYPE myType as VARCHAR(100) DROP TYPE myType
ただし、型の存在を確認する方法はまだわかりません。
実際には非常に単純であることが判明しました:
DROP TYPE myType IF EXISTS