-12

I have a view defined in my Oracle database and I would like to drop it. How can I drop a view?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131

1 Answers1

3

According to Oracle's documentation on DROP VIEW (Oracle Database 20c) the syntax (in the "Description of the illustration drop_view.eps") is:

DROP VIEW [ schema. ] view [ CASCADE CONSTRAINTS ] ;

..which in the simplest form, if your viewname is emp_view, will be:

DROP VIEW emp_view;


Note: This answer by Chamithra Thenuwara to "Drop view if exists in oracle sql" also shows this.

Scratte
  • 3,056
  • 6
  • 19
  • 26