71
select distinct constraint_type from user_constraints;

C
-
C
P
R
U

似乎 P 表示主键,R 表示外键,对吗?U和C是什么?

4

2 回答 2

76

来自12cR1 文档

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
于 2010-08-24T00:29:04.313 回答
72
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
于 2008-10-08T16:31:28.120 回答