Created
December 14, 2009 13:30
-
-
Save programaker/256045 to your computer and use it in GitHub Desktop.
list all constraints of a table in oracle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select * from all_constraints where table_name = '<table_name>' | |
| -- where constraint_type = 'P' -> primary key | |
| -- = 'R' -> foreign keys | |
| -- = 'C' -> constraints like not null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
displaying -- not ended properly --