91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

驗證一個052考試題

發布時間:2020-08-17 00:09:34 來源:ITPUB博客 閱讀:120 作者:warehouse 欄目:關系型數據庫

8 、Examine the following statement:

SQL> ALTER TABLE SALES MODIFY CONSTRAINT pk DISABLE VALIDATE; 

Which three statements are true?

A)Rows may be inserted into the table.

B) The PK index is made unusable.

C)The PK index is dropped.

D)The constraint is still enforced for updated rows. 

E)The constraint is still enforced for inserted rows.

Answer:CDE

--=====================

SQL> create table tt(id int primary key) ;

表已創建。

SQL> desc dba_constraints
 名稱                                      是否為空? 類型
 ----------------------------------------- -------- ----------------------------
 OWNER                                              VARCHAR2(60)
 CONSTRAINT_NAME                           NOT NULL VARCHAR2(30)
 CONSTRAINT_TYPE                                    VARCHAR2(1)
 TABLE_NAME                                NOT NULL VARCHAR2(30)
 SEARCH_CONDITION                                   LONG
 R_OWNER                                            VARCHAR2(60)
 R_CONSTRAINT_NAME                                  VARCHAR2(30)
 DELETE_RULE                                        VARCHAR2(9)
 STATUS                                             VARCHAR2(8)
 DEFERRABLE                                         VARCHAR2(14)
 DEFERRED                                           VARCHAR2(9)
 VALIDATED                                          VARCHAR2(13)
 GENERATED                                          VARCHAR2(14)
 BAD                                                VARCHAR2(3)
 RELY                                               VARCHAR2(4)
 LAST_CHANGE                                        DATE
 INDEX_OWNER                                        VARCHAR2(30)
 INDEX_NAME                                         VARCHAR2(30)
 INVALID                                            VARCHAR2(7)
 VIEW_RELATED                                       VARCHAR2(14)

SQL> SELECT CONSTRAINT_NAME,CONSTRAINT_type from dba_constraints where table_name='TT';

CONSTRAINT_NAME                C
------------------------------ -
SYS_C006993                    P

SQL> alter table tt modify constraint SYS_C006993 disable validate;

表已更改。

SQL> SELECT CONSTRAINT_NAME,CONSTRAINT_type,status from dba_constraints where table_name='TT';

CONSTRAINT_NAME                C STATUS
------------------------------ - --------
SYS_C006993                    P DISABLED

SQL> SELECT CONSTRAINT_NAME,CONSTRAINT_type,status,validated from dba_constraints where table_name='TT';

CONSTRAINT_NAME                C STATUS   VALIDATED
------------------------------ - -------- -------------
SYS_C006993                    P DISABLED VALIDATED

SQL> SELECT CONSTRAINT_NAME,CONSTRAINT_type,status,validated,index_name from dba_constraints where table_name='TT';

CONSTRAINT_NAME                C STATUS   VALIDATED
------------------------------ - -------- -------------
INDEX_NAME
------------------------------
SYS_C006993                    P DISABLED VALIDATED


SQL> set linesize 120
SQL> SELECT CONSTRAINT_NAME,CONSTRAINT_type,status,validated,index_name from dba_constraints where table_name='TT';

CONSTRAINT_NAME                C STATUS   VALIDATED     INDEX_NAME
------------------------------ - -------- ------------- ------------------------------
SYS_C006993                    P DISABLED VALIDATED

SQL> select index_name from dba_indexes where table_name='TT';

未選定行

SQL> insert into tt values(1);
insert into tt values(1)
*
第 1 行出現錯誤:
ORA-25128: 不能對帶有禁用和驗證約束條件 (XYS.SYS_C006993) 的表進行插入/更新/刪除


SQL>

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

云南省| 扬州市| 赞皇县| 东台市| 屏山县| 措勤县| 沙河市| 榆林市| 伊通| 旺苍县| 兴义市| 五原县| 罗山县| 宜兴市| 正镶白旗| 张北县| 冕宁县| 无为县| 吉木萨尔县| 民乐县| 兴业县| 洞头县| 潮州市| 离岛区| 塔河县| 西林县| 宜昌市| 施秉县| 巴塘县| 墨脱县| 遵义县| 天津市| 霍城县| 江华| 姚安县| 拉孜县| 永昌县| 东乡族自治县| 莱州市| 桐柏县| 铁力市|