Oracle8i SQL Reference Release 3 (8.1.7) Part Number A85397-01 |
|
SQL Statements:
DROP SEQUENCE to UPDATE, 4 of 27
Use the DROP
TABLE
statement to remove a table or an object table and all its data from the database.
See Also:
|
The table must be in your own schema or you must have the DROP
ANY
TABLE
system privilege.
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:
FORCE
clause and removes any user-defined statistics collected with the statistics type.
See Also: ASSOCIATE STATISTICS and DISASSOCIATE STATISTICS for more information on statistics type associations
Note: To drop a cluster and all its the tables, use the
DROP
CLUSTER
statement with the INCLUDING
TABLES
clause to avoid dropping each table individually. See DROP CLUSTER.
INSERT
refresh information associated with the table.
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.
DROP
TABLE
Example
The following statement drops the test_data
table:
DROP TABLE test_data;
|
![]() Copyright © 1996-2000, Oracle Corporation. All Rights Reserved. |
|