Updatable Join Views (181)
A join view is defined as a view that has more than one table or view in its FROM
clause (a join) and that does not use any of these clauses: DISTINCT, aggregation,
GROUP BY, START WITH, CONNECT BY, ROWNUM, and set operations (UNION ALL,
INTERSECT, and so on).
An updatable join view is a join view that involves two or more base tables or views,
where UPDATE, INSERT, and DELETE operations are permitted. The data dictionary
views ALL_UPDATABLE_COLUMNS, DBA_UPDATABLE_COLUMNS, and USER_UPDATABLE_COLUMNS
contain information that indicates which of the view columns
are updatable. In order to be inherently updatable, a view cannot contain any of the
following constructs:
■ A set operator
■ A DISTINCT operator
■ An aggregate or analytic function
■ A GROUP BY, ORDER BY, CONNECT BY, or START WITH clause
■ A collection expression in a SELECT list
■ A subquery in a SELECT list
■ Joins (with some exceptions)
Views that are not updatable can be modified using INSTEAD OF triggers.
可更新的連線檢視
1. 連線檢視指在一個檢視的定義查詢的 FROM 字句中引用了多個表或檢視 ,且查詢中沒有使用以下子句:DISTINCT,聚合函式等.
2. 可更新連線檢視是指涉及到兩張或以上的表進行DML操作是被允許的
3. 從ALL_UPDATABLE_COLUMNS, DBA_UPDATABLE_COLUMNS等字典檢視中可查詢出哪些檢視列是可被更新的
4. 包含以下運算結構的檢視不能更新 :set , disitnct 等
5. 對於不可更新的檢視,可以利用 INSTEAD OF 觸發器對其資料進行修改
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10599713/viewspace-981772/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- DML ViewsView
- 題解:AT_arc181_b [ARC181B] Annoying String Problem
- join、inner join、left join、right join、outer join的區別
- 8.1.1 V$ ViewsView
- 8.1.2 GV$ ViewsView
- Parallel query & viewsParallelView
- External Views (33)View
- Overview of Views (174)View
- [ARC181F] Colorful Reversi
- MySQL LEFT JOIN/ INNER JOIN/RIGHT JOINMySql
- barbajs-ViewsJSView
- Some Dictionary Views For ASMViewASM
- Views and Base Tables (243)View
- How Views are Stored (175)View
- How Views Are Used (176)View
- Mechanics of Views (177)View
- Dependencies and Views (180)View
- Object Views (182)ObjectView
- sql中的join、left join、right joinSQL
- Codeforces Round #181 (Div. 2)
- Mysql join 的本質,Nested Loop Join 和 Hash JoinMySqlOOP
- Oracle's V$ Views(轉)OracleView
- About Static Data Dictionary ViewsView
- Views with the Prefix USER (267)View
- Views with the Prefix ALL (268)View
- Views with the Prefix DBA (269)View
- Globalization Support Parameters in Views (178)View
- Overview of Materialized Views (184)ViewZed
- Refresh Materialized Views (189)ZedView
- PostgreSQL DBA(181) - Using PostgreSQL as a Data WarehouseSQL
- mysql left join轉inner joinMySql
- .join()
- sql之left join、right join、inner join的區別SQL
- 連線查詢簡析 join 、 left join 、 right join
- hash join\nest loop join\sort merge join的實驗OOP
- ZT:簡單介紹join,outer-join,semi-join,anti-join的區別
- LEFT JOIN 和JOIN 多表連線
- HASH JOIN ,MERGE JOIN ,NESTED LOOPOOP