Skip to content

Instantly share code, notes, and snippets.

@BrunoCaimar
Created December 18, 2020 20:52
Show Gist options
  • Save BrunoCaimar/2d5719ff053872921d1374f1cce806b5 to your computer and use it in GitHub Desktop.
Save BrunoCaimar/2d5719ff053872921d1374f1cce806b5 to your computer and use it in GitHub Desktop.
GERA_DELETES_ORACLE (baseado no catalogo)
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