Skip to content

Instantly share code, notes, and snippets.

@blacknoob20
Last active March 6, 2025 16:54
Show Gist options
  • Select an option

  • Save blacknoob20/39330eade2147347b2d2c3ddeda5a1f7 to your computer and use it in GitHub Desktop.

Select an option

Save blacknoob20/39330eade2147347b2d2c3ddeda5a1f7 to your computer and use it in GitHub Desktop.

Revisions

  1. blacknoob20 revised this gist Mar 6, 2025. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions oraclesnips.md
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,10 @@
    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;
    ```
  2. blacknoob20 revised this gist Feb 11, 2025. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions oraclesnips.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # Oracle Snippets
    ### Comma separated string as list
    ```
    SELECT REGEXP_SUBSTR(<here your string>, '[^,]+', 1, LEVEL) AS registro
  3. blacknoob20 revised this gist Nov 18, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions oraclesnips.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ### Comma separated string as list
    ```
    SELECT REGEXP_SUBSTR(<here your string>, '[^|]+', 1, LEVEL) AS registro
    SELECT REGEXP_SUBSTR(<here your string>, '[^,]+', 1, LEVEL) AS registro
    FROM DUAL
    CONNECT BY REGEXP_SUBSTR(<here your string>, '[^|]+', 1, LEVEL) IS NOT NULL
    CONNECT BY REGEXP_SUBSTR(<here your string>, '[^,]+', 1, LEVEL) IS NOT NULL
    ```
  4. blacknoob20 created this gist Nov 18, 2024.
    6 changes: 6 additions & 0 deletions oraclesnips.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    ### 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
    ```