Updating a view

Posts   
 
    
Ian avatar
Ian
User
Posts: 511
Joined: 01-Apr-2005
# Posted on: 25-Apr-2005 18:38:50   

Hi,

When I try and update a view entity, I get..

"View or function 'myView' is not updatable because the modification affects multiple base tables"

Is there a way to have two tables from a view updatable?

Cheers,

Ian.

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 25-Apr-2005 18:58:28   

Most databases support by default the update of 1 table using a view. You can work around this by defining an instead of trigger for INSERT on the view simple_smile

Frans Bouma | Lead developer LLBLGen Pro