Created
December 18, 2020 20:52
-
-
Save BrunoCaimar/2d5719ff053872921d1374f1cce806b5 to your computer and use it in GitHub Desktop.
GERA_DELETES_ORACLE (baseado no catalogo)
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
SELECT | |
'DELETE FROM ' | |
|| table_name | |
|| ';' | |
FROM | |
all_tables t | |
JOIN | |
all_objects o | |
ON | |
o.object_name = t.table_name | |
AND | |
o.owner = t.owner | |
WHERE | |
t.owner = 'OWNER' | |
ORDER BY o.created; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment