Skip to content

Instantly share code, notes, and snippets.

@blacknoob20
Last active March 6, 2025 16:54
Show Gist options
  • Save blacknoob20/39330eade2147347b2d2c3ddeda5a1f7 to your computer and use it in GitHub Desktop.
Save blacknoob20/39330eade2147347b2d2c3ddeda5a1f7 to your computer and use it in GitHub Desktop.
Oracle snippets

Oracle Snippets

Comma separated string as list

SELECT REGEXP_SUBSTR(<here your string>, '[^,]+', 1, LEVEL) AS registro
  FROM DUAL
CONNECT BY REGEXP_SUBSTR(<here your string>, '[^,]+', 1, LEVEL) IS NOT NULL

List all objects created in database

SELECT owner, object_name, object_type
FROM all_objects
ORDER BY owner, object_type, object_name;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment