RE: View error msg

2002-07-24 Thread Richard Huntley
Title: RE: View error msg





Take a look at Note:93516.1 on Metalink (Can a View be Created That Allows 
Insert of Records into the View and Base Table). Make sure that one table
has a primary key that is reference by a fk in the other table. Without the 
relationship, it won't work, hence the error msg. 


-Original Message-
From: Vandana [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 11:33 PM
To: Multiple recipients of list ORACLE-L
Subject: View error msg




Hi,
 I created a view as a join of two tables, each of which has a 
primary key defined on it. When I am trying to insert values into the view 
I see the following error msg,


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


 What could the error be?
 Thanks.



-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Vandana
 INET: [EMAIL PROTECTED]


Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).





RE: View error msg

2002-07-24 Thread Seefelt, Beth


Does the WHERE clause on your view contain all of the fields from both
primary keys?  Maybe you should post the table/view definitions.

Beth

-Original Message-
Sent: Tuesday, July 23, 2002 11:33 PM
To: Multiple recipients of list ORACLE-L



Hi,
I created a view as a join of two tables, each of which has a 
primary key defined on it. When I am trying to insert values into the
view 
I see the following error msg,

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

What could the error be?
Thanks.


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Vandana
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Seefelt, Beth
  INET: [EMAIL PROTECTED]

Fat City Network Services-- (858) 538-5051  FAX: (858) 538-5051
San Diego, California-- Public Internet access / Mailing Lists

To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).