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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 4, 2012, 7:34 PM EDT
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.SenthilkumarRank #387 · 6.5K reputationPosted Apr 4, 2012, 8:10 PM EDT