Skip to content

Instantly share code, notes, and snippets.

@ioggstream
Created September 8, 2015 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ioggstream/a4276f72716237329572 to your computer and use it in GitHub Desktop.
Save ioggstream/a4276f72716237329572 to your computer and use it in GitHub Desktop.
SELECT constraint_name, constraint_type, column_name
from user_constraints natural join user_cons_columns
where table_name = "my_table_name";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment