Last active
October 1, 2019 12:32
-
-
Save reisdev/06831d2f87b042a0ba56087246ccb75c to your computer and use it in GitHub Desktop.
Drops All Tables for Oracle DB PL/SQL
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 c IN (SELECT table_name from user_tables) | |
LOOP | |
EXECUTE IMMEDIATE ('DROP TABLE ' || c.table_name || ' | |
cascade constraints PURGE'); | |
END LOOP; | |
END; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment