Created
December 4, 2015 17:41
-
-
Save mizanRahman/342b82d398442c34661f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BEGIN | |
| --Bye Sequences! | |
| FOR i IN (SELECT us.sequence_name | |
| FROM USER_SEQUENCES us) LOOP | |
| EXECUTE IMMEDIATE 'drop sequence '|| i.sequence_name ||''; | |
| END LOOP; | |
| --Bye Tables! | |
| FOR i IN (SELECT ut.table_name | |
| FROM USER_TABLES ut) 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