| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Implicit constraints in a view
NENASHI, Tegiri wrote:
> Aloha Kakuikanu wrote:
> > Please note, that the actions should be consistent. For example, you
> > can not do
> >
> > insert ('JanHidders', 'RMI') into AllPosters;
> > insert ('JanHidders', 'IMR') into AllPosters;
> > commit;
> >
> > because no transaction on the base tables could produce such result on
> > the view.
>
> Why not ? What constraint does not permit the insert ? The insertion
> can be done into the tables directly, no ?
When we define a view, we also define some implicit constraints. Here is quite an obvious one:
check type = 'IMR' or type = 'RMI' or type = 'I'
I suggest that you are not allowed to do the following
insert ('SomeGuy', 'NotAValidTyp') into AllPosters;
exactly because of this constraint. Likewise, in the cited example. Which constraint:-? Received on Wed Nov 08 2006 - 22:29:55 CST
![]() |
![]() |