Some sequences were created because of the error described here. To keep everything clean I tried to delete them with the command DROP SEQUENCE seqname;. It produces me the following message:
Error code -1, SQL state 42X01: Syntax error: Encountered "" at line 1, column 20. Line 1, column 1 Execution finished after 0 s, 1 error(s) occurred.
I guess it is because I work on Windows machine which has different EOF marker. But how to solve the problem in SQL?
1 Answer 1
After several trials the solution is DROP SEQUENCE sequence_name RESTRICT which was found here. Adding RESTRICT to the SQL statement solves the problem