Oracle8i SQL Reference
Release 3 (8.1.7)

Part Number A85397-01

Library

Product

Contents

Index

Go to previous page Go to beginning of chapter Go to next page

SQL Statements:
DROP SEQUENCE to UPDATE, 4 of 27


DROP TABLE

Purpose

Use the DROP TABLE statement to remove a table or an object table and all its data from the database.

See Also:

 

Prerequisites

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

Syntax


Keywords and Parameters

schema

Specify the schema containing the table. If you omit schema, Oracle assumes the table is in your own schema.

table

Specify the name of the table, object table, or index-organized table to be dropped. Oracle automatically performs the following operations:

CASCADE CONSTRAINTS

Specify CASCADE CONSTRAINTS to drop all referential integrity constraints that refer to primary and unique keys in the dropped table. If you omit this clause, and such referential integrity constraints exist, Oracle returns an error and does not drop the table.

Example

DROP TABLE Example

The following statement drops the test_data table:

DROP TABLE test_data; 

Go to previous page Go to beginning of chapter Go to next page
Oracle
Copyright © 1996-2000, Oracle Corporation.

All Rights Reserved.

Library

Product

Contents

Index