hi,
What is the difference between updatable and non updatable view?
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted Apr 5, 2012, 12:10 AM
Jignesh TrivediPosted Apr 4, 2012, 11:34 PM
DML (INSERT, UPDATE and DELETE statements) may be used on views.
The operation is then performed on the base table upon which the view is defined.
certain views may not be updated because a view containing DISTINCT values, where a single row in the view may represent several rows in the base table.
this is an example.
other reason for view becomes unuptable are follow
- the keyword DISTINCT is used in the view definition.
- the select list contains components other than column specifications, or contains more than one specification of the same column.
- the FROM clause specifies more than one table reference or refers to a non-updatable view.
- the GROUP BY clause is used in the view definition.
- the HAVING clause is used in the view definition .
- top keyword used in view defination.
- An aggregate function used in view defination.
hope this help.