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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating/Deleting Data in Views in SQL

Status
Not open for further replies.

RocAFella2007

Technical User
Mar 21, 2007
45
GB
Hi, I was oping somebody could help me out please. I have created a view which joins 3 tables, the view itself works with no problems but im facing problems when it comes to the data getting edited, updated or deleted in the view.

The error message that appears when i try to update is:

ORA-01779: cannot modify a column which maps to a non key-preserved table.

The help i require is if somebody could tell me how you actually update/delete records in the view I would appreciate it. Thanks.
 
1) do a google search
2) post in an Oracle forum
 
Probably the DBMS can't decide which base table data up update. (Instead of manipulating the view, work directly on the base tables.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top