Wofür stehen die Buchstabencodes in der Constraint_Type-Spalte der Oracle user_contlements-Tabelle?

70
select distinct constraint_type from user_constraints;

C
-
C
P
R
U

Scheint, P bedeutet Primärschlüssel und R bedeutet Fremdschlüssel, richtig? Was sind U und C?

Dacracot
quelle

Antworten:

74

Aus der 12cR1-Dokumentation :

C - Check constraint on a table  
P - Primary key  
U - Unique key  
R - Referential integrity  
V - With check option, on a view  
O - With read only, on a view  
H - Hash expression  
F - Constraint that involves a REF column  
S - Supplemental logging
user428974
quelle
68
Code Description                Acts On Level
---------------------------------------------
C    Check on a table           Column
O    Read Only on a view        Object
P    Primary Key                Object
R    Referential (Foreign Key)  Column
U    Unique Key                 Column
V    Check Option on a view     Object
Dacracot
quelle