Skip to content

Instantly share code, notes, and snippets.

@michail-nikolaev
Created January 15, 2013 17:07
Show Gist options
  • Save michail-nikolaev/4540162 to your computer and use it in GitHub Desktop.
Save michail-nikolaev/4540162 to your computer and use it in GitHub Desktop.
Oracle - drop all tables
select 'drop table ' ||table_name||' cascade constraints;' from user_tables;
@lwhken
Copy link

lwhken commented Feb 26, 2015

Please note: this generates the SQL statements for dropping all tables. You'll need to run these statements to actually drop the tables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment