Created
November 29, 2019 10:15
-
-
Save plehr/9553c1f24a5aff56a7d4e977e3105351 to your computer and use it in GitHub Desktop.
ORACLE clear database
This file contains 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 | |
FOR table_ IN (SELECT table_name FROM all_tables WHERE OWNER='MS2') LOOP | |
execute immediate 'DROP TABLE ' || table_.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