Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

drop tables

Status
Not open for further replies.

oracler

MIS
Oct 4, 2001
19
US
In our class projects, we screwed up the tables last time in Oracle8, so we tried to drop all of them and regenerate tables. However, because they are interconnected, we couldn't drop them one by one. Is there any command to drop all the tables in your space?

thanks.
 
You may drop table by

drop table your_table cascade constraints;

To drop all tables you may loop through user_tables and issue drop commands using EXECUTE IMMEDIATE.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top