dba_objects 中不包含 constraint
dba_objects 中不包含 constraint,
其基表 obj$中也不包含 constraint;
constraint (約束)的基表是 con$.
SQL> conn song/song
Connected.
SQL> drop table t purge;
Table dropped.
SQL> create table t (id number);
Table created.
SQL> alter table t add primary key (id);
Table altered.
SQL> select constraint_name from user_constraints where table_name='T';
CONSTRAINT_NAME
------------------------------------------------------------
SYS_C007611
SQL> SELECT index_name from user_indexes where index_name='SYS_C007611';
INDEX_NAME
------------------------------------------------------------
SYS_C007611
SQL> SELECT OBJECT_NAME,OBJECT_TYPE FROM USER_OBJECTS WHERE OBJECT_NAME='SYS_C007611';
OBJECT_NAME
--------------------------------------------------------------------------------
OBJECT_TYPE
--------------------------------------
SYS_C007611
INDEX
從 obj$表的欄位中可以看出:
type# number not null, /* object type (see KQD.H): */
/* 1 = INDEX, 2 = TABLE, 3 = CLUSTER, 4 = VIEW, 5 = SYNONYM, 6 = SEQUENCE, */
/* 7 = PROCEDURE, 8 = FUNCTION, 9 = PACKAGE, 10 = NON-EXISTENT, */
/* 11 = PACKAGE BODY, 12 = TRIGGER, 13 = TYPE, 14 = TYPE BODY, */
/* 19 = TABLE PARTITION, 20 = INDEX PARTITION, 21 = LOB, 22 = LIBRARY, */
/* 23 = DIRECTORY , 24 = QUEUE, */
/* 25 = IOT, 26 = REPLICATION OBJECT GROUP, 27 = REPLICATION PROPAGATOR, */
/* 28 = JAVA SOURCE, 29 = JAVA CLASS, 30 = JAVA RESOURCE, 31 = JAVA JAR, */
/* 32 = INDEXTYPE, 33 = OPERATOR , 34 = TABLE SUBPARTITION, */
/* 35 = INDEX SUBPARTITION */
/* 82 = (Data Mining) MODEL */
這裡的型別也沒有 constraint.
SQL> select name from con$ where name='SYS_C007611';
NAME
------------------------------------------------------------
SYS_C007611
其基表 obj$中也不包含 constraint;
constraint (約束)的基表是 con$.
SQL> conn song/song
Connected.
SQL> drop table t purge;
Table dropped.
SQL> create table t (id number);
Table created.
SQL> alter table t add primary key (id);
Table altered.
SQL> select constraint_name from user_constraints where table_name='T';
CONSTRAINT_NAME
------------------------------------------------------------
SYS_C007611
SQL> SELECT index_name from user_indexes where index_name='SYS_C007611';
INDEX_NAME
------------------------------------------------------------
SYS_C007611
SQL> SELECT OBJECT_NAME,OBJECT_TYPE FROM USER_OBJECTS WHERE OBJECT_NAME='SYS_C007611';
OBJECT_NAME
--------------------------------------------------------------------------------
OBJECT_TYPE
--------------------------------------
SYS_C007611
INDEX
從 obj$表的欄位中可以看出:
type# number not null, /* object type (see KQD.H): */
/* 1 = INDEX, 2 = TABLE, 3 = CLUSTER, 4 = VIEW, 5 = SYNONYM, 6 = SEQUENCE, */
/* 7 = PROCEDURE, 8 = FUNCTION, 9 = PACKAGE, 10 = NON-EXISTENT, */
/* 11 = PACKAGE BODY, 12 = TRIGGER, 13 = TYPE, 14 = TYPE BODY, */
/* 19 = TABLE PARTITION, 20 = INDEX PARTITION, 21 = LOB, 22 = LIBRARY, */
/* 23 = DIRECTORY , 24 = QUEUE, */
/* 25 = IOT, 26 = REPLICATION OBJECT GROUP, 27 = REPLICATION PROPAGATOR, */
/* 28 = JAVA SOURCE, 29 = JAVA CLASS, 30 = JAVA RESOURCE, 31 = JAVA JAR, */
/* 32 = INDEXTYPE, 33 = OPERATOR , 34 = TABLE SUBPARTITION, */
/* 35 = INDEX SUBPARTITION */
/* 82 = (Data Mining) MODEL */
這裡的型別也沒有 constraint.
SQL> select name from con$ where name='SYS_C007611';
NAME
------------------------------------------------------------
SYS_C007611
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25099483/viewspace-1151222/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 10、Oracle中的約 束constraintOracleAI
- 約束CONSTRAINTAI
- Could not resolve com.android.support.constraint:constraint-layout:1.1.3AndroidAI
- Will attempt to recover by breaking constraintAI
- 記12-7版本業務邏輯 - A不包含B且不包含C且不包含D
- MySQL——約束(constraint)詳解MySqlAI
- CentOS7和RHEL7在 /etc/fstab中不包含/dev/shmCentOSdev
- mysql如何判斷不包含某個字元MySql字元
- iOS 常用佈局方式之ConstraintiOSAI
- 羽夏筆記——PE結構(不包含.Net)筆記
- Java中包含哪些運算子Java
- MYSQL——mysql檢索不包含字母U的資料MySql
- VS2022 名稱空間std不包含vector
- 匹配不包含字母的字串的正規表示式字串
- 【解決DML 語句包含不帶 INTO 子句的 OUTPUT 子句】
- 如果基不為10,則此字串不能包含減號字串
- 使用正規表示式找出所有不包含某字串的行字串
- linux中inode包含什麼內容?Linux
- MoveIt! 學習筆記10- Planning with Approximated Constraint Manifolds筆記APPAI
- 檢查vector中是否包含給定元素
- 全網最硬核 JVM TLAB 分析(單篇版不包含額外加菜)JVM
- 包含塊
- 深入理解JVM記憶體回收機制(不包含垃圾收集器)JVM記憶體
- 第三季6.5排序(單個字串不包含重複字元)排序字串字元
- HV000030: No validator could be found for constraint ‘javax.validation.constraints.Pattern‘ validatiAIJava
- 漏洞反饋,使用者授權報錯Integrity constraint violationAI
- Flink的Job manager中包含了哪三個元件元件
- 經典問題 2 —— 動態不包含區間與點完美匹配問題
- js計算兩個日期相差的天數(不包含小時分鐘秒)JS
- Tensorboard打不開(最新解決方案包含No dashboards are active for the current data set.問題)ORB
- 建立外來鍵時報 Cannot add foreign key constraint 解決方法AI
- 類的包含
- 檔案包含漏洞(本地包含配合檔案上傳)
- 本地檔案包含之包含日誌獲取webshellWebshell
- sql 判斷 某列中是否包含 某種符號SQL符號
- python怎麼查詢字串中是否包含某個字串Python字串
- 隨身碟此卷不包含可識別的檔案系統修復方法?
- python中帶ico在當前工程目錄,怎麼打包才能把它包含到exe中的方法。Pyinstaller打包包含ico的pyPython
- 動態尺寸模型最佳化實踐之Shape Constraint IR Part I模型AI