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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 判斷字串中只包含或不包含某種字元的方法字串字元
- 不經意發現的dba_objects和dba_tables中的細節Object
- [CareerCup] 10.3 Integer not Contain in the File 檔案中不包含的數AI
- 不包含INTO的動態SQL不會增加序列值SQL
- 10、Oracle中的約 束constraintOracleAI
- 記12-7版本業務邏輯 - A不包含B且不包含C且不包含D
- CentOS7和RHEL7在 /etc/fstab中不包含/dev/shmCentOSdev
- ConstraintAI
- mysql如何判斷不包含某個字元MySql字元
- 羽夏筆記——PE結構(不包含.Net)筆記
- 正規表示式裡字串”不包含”匹配技巧字串
- Java中包含哪些運算子Java
- 約束CONSTRAINTAI
- constraint約束AI
- Unused&ConstraintAI
- 包含DOMAIN的資料庫建立資料庫鏈到不包含DOMAIN的資料庫AI資料庫
- 匹配不包含字母的字串的正規表示式字串
- MYSQL——mysql檢索不包含字母U的資料MySql
- 正規表示式如何匹配不包含指定字元的字串字元字串
- 如果基不為10,則此字串不能包含減號字串
- 【解決DML 語句包含不帶 INTO 子句的 OUTPUT 子句】
- 關於DBA_OBJECTS的LAST_DDL_TIMEObjectAST
- object_id and data_object_id in dba_objectsObject
- Deferred Constraint CheckAI
- constraint=constraints?AI
- Could not resolve com.android.support.constraint:constraint-layout:1.1.3AndroidAI
- not in 中包含null值是個悲劇Null
- 11g檢視dba_objects中增加了1個有用的欄位namespaceObjectnamespace
- 使用正規表示式找出所有不包含某字串的行字串
- Google面試題 | 不包含連續1的非負整數Go面試題
- Oracle資料庫中Constraint約束的四對屬性Oracle資料庫AI
- lob索引在不同版本dba_objects存在問題索引Object
- v$session之小測試(三)_與dba_objectsSessionObject
- Will attempt to recover by breaking constraintAI
- CONSTRAINT的用法舉例AI
- Constraint deferrable特性研究AI
- constraint deferrable immediate checkAI
- Deferring Constraint ChecksAI