Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you delete the default database/schema in hsqldb

I've created an in memory hsqldb and am using the default database/schema. Now I want to drop and recreate the database programatically.

How do I do that?

like image 515
Dan Avatar asked Sep 03 '25 04:09

Dan


1 Answers

DROP SCHEMA PUBLIC CASCADE

This will purge the public schema. If you create other schemas, use the same command with the schema name instead of PUBLIC.

like image 70
fredt Avatar answered Sep 04 '25 23:09

fredt