| Oracle8i SQL Reference Release 2 (8.1.6) A76989-01 |
|
SQL Statements (continued), 29 of 30
To remove a view or an object view from the database. You can change the definition of a view by dropping and re-creating it.
The view must be in your own schema or you must have the DROP ANY VIEW system privilege.
|
schema |
is the schema containing the view. If you omit schema, Oracle assumes the view is in your own schema. |
|
view |
is the name of the view to be dropped. Views, materialized views, and synonyms that refer to the view are not dropped, but become invalid. You can drop them or redefine views and synonyms, or you can define other views in such a way that the invalid views and synonyms become valid again. See "CREATE TABLE" and "CREATE SYNONYM". To revalidate invalid materialized views, see "ALTER MATERIALIZED VIEW / SNAPSHOT". |
The following statement drops the VIEW_DATA view:
DROP VIEW view_data;
|
|
![]() Copyright © 1999 Oracle Corporation. All Rights Reserved. |
|