Skip to content

Instantly share code, notes, and snippets.

@nijjwal
Created April 2, 2015 02:15
Show Gist options
  • Save nijjwal/a59962b91999600a4d5d to your computer and use it in GitHub Desktop.
Save nijjwal/a59962b91999600a4d5d to your computer and use it in GitHub Desktop.
Delete all tables in SQL
begin
for i in (select * from tabs) loop
execute immediate ('drop table ' || i.table_name || ' cascade constraints');
end loop;
end;
/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment