Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to drop schema in derby

Here as you can see I have a schema with name MySchema

MySchema database

But now I wanted to delete it
Dropping schema

But it is not working and showing me the error saying "Encountered EOF" : enter image description here

How could I delete this schema?

Using java-8, netbeans-8, and execution was being made using Client driver i.e. org.apache.derby.jdbc.ClientDriver

like image 396
afzalex Avatar asked Dec 02 '25 14:12

afzalex


1 Answers

You need to add the restrict keyword to the end of your command, e.g.

drop schema myschema restrict;

This enforces the rule that no objects can be defined in the schema when it is to be deleted.

like image 69
Dave Avatar answered Dec 05 '25 05:12

Dave



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!