Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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
View previous topic :: :: View next topic  
Author Message
Warnings : 1

New User

Joined: 05 Aug 2005
Posts: 50
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

Back to top
View user's profile Send private message


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
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1


Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Updating online Db2 table kishpra DB2 3 Fri Aug 12, 2016 2:44 pm
This topic is locked: you cannot edit posts or make replies. Updating value of key using rewrite s... ParminderKumar COBOL Programming 4 Thu Aug 04, 2016 12:46 am
No new posts Help Needed with View Direct shailesh_do CA Products 2 Wed Jul 13, 2016 10:39 am
No new posts how to find clist's or view library Andrew Hsia CLIST & REXX 4 Tue Jun 28, 2016 6:07 pm
No new posts Report view in Mobile devices Robert Sample All Other Mainframe Topics 0 Thu Jun 23, 2016 7:05 pm

Back to Top
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us