|
|
9i 的规则改变了
Oracle9i Database README Release Notes
26.0 MATERIALIZED VIEWS
26.1 Updating a Join View
The delete rules for updatable join views have been changed in Oracle9i. It is now possible to delete from an updatable join view when the join view contains more than one key-preserved tables. In this case, Oracle9i uses the first table appearing in the from clause of the updatable join view as the target of the delete operation.
For example:
delete from
(select rowid
from orders o, okey ok
where o.orderkey = ok.orderkey);
If both tables are key-preserved (that is, a unique index exists on the orderkey column for both tables), Oracle9i will resolve the ambiguity by assuming that the target of the delete operation is the table order, as it appears first in the from clause of the updatable join view. The same rule also applies to updatable join views using the WITH CHECK OPTION clause.
For more information on updatable join views and key-preserved tables, please refer to section "Managing Views, Sequences and Synonyms" in the Oracle9i Database Administrator's Guide. |
|