溫馨提示×

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

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

OCP-051-002

發(fā)布時(shí)間:2020-08-10 19:57:28 來源:ITPUB博客 閱讀:148 作者:fwinmachao 欄目:關(guān)系型數(shù)據(jù)庫
2. View the Exhibit to examine the description for the SALES table.
    Which views can have all DML operations performed on it? (Choose all that apply.)
OCP-051-002

A. CREATE VIEW v3
AS SELECT * FROM SALES WHERE cust_id = 2034
WITH CHECK OPTION;

B. CREATE VIEW v1
AS SELECT * FROM SALES
WHERE time_id <= SYSDATE - 2*365
WITH CHECK OPTION;
C. CREATE VIEW v2
AS SELECT prod_id, cust_id, time_id FROM SALES
WHERE time_id <= SYSDATE - 2*365
WITH CHECK OPTION;

D. CREATE VIEW v4
AS SELECT prod_id, cust_id, SUM(quantity_sold) FROM SALES WHERE time_id <= SYSDATE - 2*365
GROUP BY prod_id, cust_id
WITH CHECK OPTION;


---updateable的視圖有二種,一種是繼承基表的視圖, 一種是使用instead of的觸發(fā)器來實(shí)現(xiàn)

繼承的視圖DML操作需要滿足一下條件:
1. 視圖必須包含基表的每一列.
2. 視圖不能包含一下操作: set, distinct, aggregate or analytic function, group by, order by, model, connect by, start with
                                   subquery in select, with read only.


向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI