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

Can we upadte view?


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

New User


Joined: 21 Oct 2003
Posts: 45

PostPosted: Sun Feb 15, 2004 10:01 pm
Reply with quote

Can we upadte view?

After coding COBOL-CICS-DB2? What we have to do next?
Back to top
View user's profile Send private message
mcmillan

Site Admin


Joined: 18 May 2003
Posts: 1210
Location: India

PostPosted: Sun Feb 15, 2004 10:21 pm
Reply with quote

Dear,

Yes, you can UPDATE any table thru it's VIEW only if,


Code:
1. View has selected from only one base table

2. The view contains all the non-default column of base table
Back to top
View user's profile Send private message
ajaychandra

New User


Joined: 31 Mar 2005
Posts: 16
Location: Bangalore

PostPosted: Thu Apr 14, 2005 3:13 pm
Reply with quote

Dear Vamsi

Yes Views can be updated if and only if

1) It is from a single table
2) It should be a row-coloum subset of the underlying base table.


If coloum in view has scalar or Aggregate functions, view from a single table also cann't be updated.

Note: Views cannot have order by or group by clause.

Ajay Chandra
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 How to filter PDS member using LMINIT... CLIST & REXX 4
Search our Forums:

Back to Top