DML Views
1 view of insertable,updable,deletable
SQL> CREATE VIEW V4(or_no, or_date, cust_id)
2 AS SELECT order_id, order_date, customer_id
3 FROM orders
4 WHERE order_date < '30-mar-2007' WITH CHECK OPTION;
檢視已建立。
SQL> select text from user_views where view_name='V4';
TEXT
------------------------------------------------------------
SELECT order_id, order_date, customer_id
FROM orders
WHERE order_date < '30-mar-
SQL> select column_name,insertable,updatable,deletable
2 from user_updatable_columns
3 where column_name in ('OR_NO','OR_DATE','CUST_ID')
4 ;
COLUMN_NAME INS UPD DEL
------------------------------ --- --- ---
OR_NO YES YES YES
OR_DATE YES YES YES
CUST_ID YES YES YES
SQL> select column_name,insertable,updatable,deletable
2 from user_updatable_columns
3 where table_name IN('ORDERS','ORDER_ITEMS')
4 AND column_name in ('ORDER_ID','LINE_ITEM_ID')
5 /
COLUMN_NAME INS UPD DEL
------------------------------ --- --- ---
ORDER_ID YES YES YES
ORDER_ID YES YES YES
LINE_ITEM_ID YES YES YES
----
USER_UPDATABLE_COLUMNS describes columns in a join view that can be updated by the current user, subject to appropriate privileges. Its columns are the same as those in "ALL_UPDATABLE_COLUMNS".
ALL_UPDATABLE_COLUMNS describes all columns in a join view that are updatable by the current user, subject to appropriate privileges.
DBA_UPDATABLE_COLUMNS describes all columns in a join view that are updatable by the database administrator, subject to appropriate privileges.
2 Dml of Object Views
A view is not updatable if its view query contains joins, set operators, rownumthe.columns defined by expression,aggregate functions, GROUP BY, or DISTINCT. If a view query contains pseudocolumns or expressions, the corresponding view columns are not updatable. Object views often involve joins.
---end---
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/13750068/viewspace-718882/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 8.1.1 V$ ViewsView
- 8.1.2 GV$ ViewsView
- Oracle's V$ Views(轉)OracleView
- Oracle Parallel DMLOracleParallel
- DML_The OUTPUT Clause
- OGG 簡單DML同步
- Mysql DML 新增資料MySql
- HITSC_1_Views and Quality Objectives of Software ConstructionViewObjectStruct
- MySQL DML運算元據MySql
- ASP.NET Core MVC 之檢視(Views)ASP.NETMVCView
- ECCV 2020 | Robust Re-Identification by Multiple Views Knowledge DistillationIDEView
- SQLServer DML操作阻塞SELECT查詢SQLServer
- 入門MySQL——DML語句篇MySql
- DDL、DML、DCL、DQL相關操作
- MySQL基礎之DML語句MySql
- Sysbench-0.5改成只有DML操作
- SQL學習___03:DML語法SQL
- Oracle 19c Concepts(04):Partitions, Views, and Other Schema ObjectsOracleViewObject
- Find and Fix the Mismatch Between DBA_SEGMENTS and DBA_EXTENTS ViewsView
- Oracle 19c Concepts(06):Data Dictionary and Dynamic Performance ViewsOracleORMView
- unusable index對DML/QUERY的影響Index
- MySQL全面瓦解5:資料操作-DMLMySql
- 原創:oracle DML介紹與使用Oracle
- MySQL的DDL和DML操作語法MySql
- 【學習】SQL基礎-010-DMLSQL
- MySQL-DML(Data Manipulation Language)詳解MySql
- MySQL alter 新增列對dml影響MySql
- [20210519]是否可能導致DML失效.txt
- Oracle:ORA-01219:database not open:queries allowed on fixed tables/views onlyOracleDatabaseView
- Views and Controls (Appkit 中文文件手冊 教程含原始碼)ViewAPP原始碼
- vue專案為什麼有些是pages有些是viewsVueView
- [20240325]FORCE_MATCHING_SIGNATURE與DML.txt
- 6.3. 基本SQL語句——6.3.2. DMLSQL
- 資料庫DML監控一例資料庫
- MySQL 的資料管理及 DML 語句MySql
- SQL基礎——DML(插入、修改和刪除)SQL
- oracle全文索引之commit與DML操作Oracle索引MIT
- Oracle 檢視可以DML操作的條件Oracle
- KunlunDB對MySQL私有DML語法的支援MySql