drop table [Oracle SQL]
drop table table_name;
drop table table_name cascade constraints;
drop table table_name purge;
The drop table command moves a table into the recycle bin unless purge was also specified.
purge
Normally, a table is moved into the recycle bin (as of Oracle 10g), if it is dropped. However, if the purge modifier is specified as well, the table is unrecoverably (entirely) dropped from the database.
cascade constraints
Deletes all foreign keys that reference the table to be dropped, then drops the table.
Main Topics
Browse All Topics





by: professionalcomputersolutionsPosted on 2008-08-06 at 15:20:01ID: 22175712
you need to execute the commands in the correct order in able to drop the tables.
First you need to drop constraints.
Second drop tables