Oracle8i SQL Reference
Release 2 (8.1.6)

A76989-01

Library

Product

Contents

Index

Prev Up Next

SQL Statements (continued), 29 of 30


DROP VIEW

Syntax


Purpose

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.

See Also:

"CREATE VIEW"

Prerequisites

The view must be in your own schema or you must have the DROP ANY VIEW system privilege.

Keywords and Parameters

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"

Example

The following statement drops the VIEW_DATA view:

DROP VIEW view_data; 

Prev Up Next
Oracle
Copyright © 1999 Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index