select distinct constraint_type from user_constraints;

C
-
C
P
R
U

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

有帮助吗?

解决方案 2

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
scroll top