首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Oracle user_contraints表的constraint_type列中的字母代码代表什么?

Oracle user_contraints表的constraint_type列中的字母代码代表什么?
EN

Stack Overflow用户
提问于 2008-10-08 16:26:35
回答 2查看 79.7K关注 0票数 71
select distinct constraint_type from user_constraints;

C
-
C
P
R
U

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

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2008-10-08 16:31:28

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
票数 72
EN

Stack Overflow用户

发布于 2010-08-24 08:29:04

12cR1 documentation

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
票数 74
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/183642

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档