Skip to content

Instantly share code, notes, and snippets.

@phantom42
Created September 4, 2013 17:14
Show Gist options
  • Save phantom42/6439932 to your computer and use it in GitHub Desktop.
Save phantom42/6439932 to your computer and use it in GitHub Desktop.
SELECT *
FROM table a
WHERE A.column_name IN (
SELECT REGEXP_SUBSTR('1,2,3','[^,]+', level) FROM dual
CONNECT BY REGEXP_SUBSTR('1,2,3', '[^,]+', level) is not null
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment