Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: HELP :Updateable VIEWS

Re: HELP :Updateable VIEWS

From: Sven-Olaf Kelbert <kelbert_at_opitz-partner.de>
Date: Wed, 23 Feb 2000 14:28:16 +0100
Message-ID: <38B3E070.C8C7F339@opitz-partner.de>


Hi Joao!

"Joao Ricardo B. Oliveira" wrote:
>
> Hello:
>
> How can i have a updateable view in the detail part of a master-detail
> form ?
> Isn't true that if a view contains the primary keys of the tables, they
> can be updated ?

No! Only that table is updatable from which the primary key is also the primary key of the view. You can check that with the SQL-Statement

select column_name, updatable
from user_updatable_columns
where table_name = 'TABLE_NAME'; <- insert the name of your view

> I've got a error "...blabla... non key-preserverd"...
Then you have to verify, that all items which belongs to an non-keypreserved table (that tables, which primary keys are not the primary key of the view) get the property "query only = yes", to perform no insert/update on them.

Greetings,
Sven-Olaf Kelbert.


Received on Wed Feb 23 2000 - 07:28:16 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US