Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using a view to update data

Status
Not open for further replies.

masiwan

Vendor
Feb 20, 2006
37
UG
I Have created a view which simply sorts reocrds within a table,and I want toopen this view to edit/enter values in the table but my view cant allow me what I'm I missing?. I'm new to Oracle but SQL server was doing it.
 
From the Oracle Propaganda:

The rules for updatable join views are as follows:

Rule Description
General Rule
Any INSERT, UPDATE, or DELETE operation on a join view can modify only one underlying base table at a time.

UPDATE Rule
All updatable columns of a join view must map to columns of a key-preserved table. See "Key-Preserved Tables" for a discussion of key-preserved tables. If the view is defined with the WITH CHECK OPTION clause, then all join columns and all columns of repeated tables are non-updatable.

DELETE Rule
Rows from a join view can be deleted as long as there is exactly one key-preserved table in the join. If the view is defined with the WITH CHECK OPTION clause and the key preserved table is repeated, then the rows cannot be deleted from the view.

INSERT Rule
An INSERT statement must not explicitly or implicitly refer to the columns of a nonkey preserved table. If the join view is defined with the WITH CHECK OPTION clause, INSERT statements are not permitted.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top