Skip to content

Instantly share code, notes, and snippets.

@mrdaemon
Last active August 29, 2015 13:57
Show Gist options
  • Save mrdaemon/9399345 to your computer and use it in GitHub Desktop.
Save mrdaemon/9399345 to your computer and use it in GitHub Desktop.
begin
for ass in (SELECT 'DROP TABLE '||table_name||' CASCADE CONSTRAINTS' turd FROM user_tables)
loop
execute immediate ass.turd;
end loop;
end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment