IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

updating view


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kumar_ngl
Warnings : 1

New User


Joined: 05 Aug 2005
Posts: 50
Location: chennai

PostPosted: Tue Aug 16, 2005 9:12 pm
Reply with quote

Hi all,

Can any one plz give me the answer , Can we update a view???? how abt alias and synonym

thanks,
kumar.p.v
Back to top
View user's profile Send private message
withnams

New User


Joined: 06 Jul 2005
Posts: 26
Location: Chennai

PostPosted: Wed Aug 17, 2005 9:24 am
Reply with quote

Yes we can update a view provided the rows of view are same as rows of table.
When you create a view, you can define it as either a read-only view or as an
updatable view. The SELECT statement of a view determines whether the view is
read-only or updatable. Generally, if the rows of a view can be mapped to rows of the
base table, then the view is updatable.
The rules for creating updatable views are complex and depend on the definition of the
query. For example, views that use VALUES, DISTINCT, or JOIN features are not
updatable. You can easily determine whether a view is updatable by looking at the
READONLY column of SYSCAT.VIEWS: Y means it is ready-only and N means it is
not.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts SET PATH in View DDL DB2 2
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts Issues with VIEW DATASET Command CLIST & REXX 2
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts Updating a 1 byte thats in occurs mul... DFSORT/ICETOOL 6
Search our Forums:

Back to Top