MySQL Forums
Forum List  »  Views

insert into view derived from table with discriminator
Posted by: Matteo Tassinari
Date: May 29, 2014 06:50AM

Hi everybody,

I am in a situation in which I have a base table with some fields and a discriminator field which could have one out of a specific set of values.

From that base table, I have derived many views, one for each possible discriminator value, but such views do not include the discriminator column themselves.

The problem is, when I try to INSERT INTO one of the view, the insert succeedes, but the discriminator field in the base table is NULL.

Isn't there a way for me to insert in the view while having the discriminator value correctly set? Or do I need necessarily to insert in the base table instead?

Options: ReplyQuote


Subject
Views
Written By
Posted
insert into view derived from table with discriminator
7135
May 29, 2014 06:50AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.