Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
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
kumar_ngl
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

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    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
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 How to see VIEW definition from BMC c... rohanthengal DB2 1 Thu May 04, 2017 1:50 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts Updating the counters after eliminati... PANDU1 DFSORT/ICETOOL 12 Mon Nov 21, 2016 9:47 am
No new posts Updating Cursor row withour using FOR... chandan.inst DB2 15 Tue Nov 08, 2016 11:17 am
No new posts Updating online Db2 table kishpra DB2 3 Fri Aug 12, 2016 2:44 pm


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