This restriction determines what types of modifications you can make through views with check options. If a view has a with check option clause, each row inserted or updated through the view must be visible within the view.
When you create a view using the with check option clause, each insert and update through the view, is validated against the view’s selection criteria. If the rows inserted or updated are out of criteria then it fails and gives error message. For ex, you have a view named sybase_books create view sybase_books as select * from books where type='sybase' with check option. If you try to insert rows through view where type='oracle' then it will fail, for ex insert into sybase_books values ('Oracle theory','oracle')
Views 'with check' Option
Profile Answers by mamtasahu Questions by mamtasahu
Questions by mamtasahu