I have a view defined in my Oracle database and I would like to drop it. How can I drop a view?
Asked
Active
Viewed 2,359 times
-12
-
5Hint: `DROP VIEW`. – Gordon Linoff Jun 04 '20 at 18:13
-
This may answer your question: [Drop view if exists in oracle sql](https://stackoverflow.com/a/57852474) – halfer Jun 25 '20 at 21:16
-
3Kindly note that there is no such thing as a Question being too simple on Stack Overflow. Simple Questions are not off-topic. – Scratte Jul 02 '20 at 22:04
1 Answers
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