Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
updating view

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
kumar_ngl
Warnings : 1

Active User


Joined: 05 Aug 2005
Posts: 51
Location: chennai

PostPosted: Tue Aug 16, 2005 9:12 pm    Post subject: updating view
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
References
withnams

New User


Joined: 06 Jul 2005
Posts: 26
Location: Chennai

PostPosted: Wed Aug 17, 2005 9:24 am    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1